Revert "fix accept incoming network connections (#2216)" (#2294)

This reverts commit 2ff2b19e14.
This commit is contained in:
Bo-Yi Wu 2020-03-23 17:48:25 +08:00 committed by GitHub
parent ae88831448
commit 1bebd9af91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: