Skip to content

Commit

Permalink
Revert "fix accept incoming network connections (#2216)"
Browse files Browse the repository at this point in the history
This reverts commit 2ff2b19.
  • Loading branch information
appleboy authored Mar 23, 2020
1 parent ae88831 commit e8e308d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
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 e8e308d

Please sign in to comment.