Skip to content

Commit

Permalink
Revert "fix accept incoming network connections (gin-gonic#2216)" (gi…
Browse files Browse the repository at this point in the history
…n-gonic#2294)

This reverts commit 2ff2b19.
  • Loading branch information
appleboy authored and byebyebruce committed Mar 25, 2020
1 parent 5eaf881 commit 2dad9d5
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 2dad9d5

Please sign in to comment.