🚸 Change default port to 8080
This commit is contained in:
parent
17bce0a914
commit
f4357ce5ee
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -72,7 +72,7 @@ func GetRouter() *httprouter.Router {
|
||||||
func GetPort() string {
|
func GetPort() string {
|
||||||
port := os.Getenv("PORT")
|
port := os.Getenv("PORT")
|
||||||
if port == "" {
|
if port == "" {
|
||||||
port = ":80"
|
port = ":8080"
|
||||||
}
|
}
|
||||||
if !strings.HasPrefix(port, ":") {
|
if !strings.HasPrefix(port, ":") {
|
||||||
port = ":" + port
|
port = ":" + port
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue