Skip to content

Commit

Permalink
Revert "fix accept incoming network connections (#2216)" (#2294)
Browse files Browse the repository at this point in the history
This reverts commit 2ff2b19.
  • Loading branch information
appleboy committed Mar 23, 2020
1 parent ae88831 commit 1bebd9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.go
Expand Up @@ -139,10 +139,10 @@ func resolveAddress(addr []string) string {
case 0:
if port := os.Getenv("PORT"); port != "" {
debugPrint("Environment variable PORT=\"%s\"", port)
return "localhost:" + port
return ":" + port
}
debugPrint("Environment variable PORT is undefined. Using port :8080 by default")
return "localhost:8080"
return ":8080"
case 1:
return addr[0]
default:
Expand Down

0 comments on commit 1bebd9a

Please sign in to comment.