Remove localhost when listening in debug mode
This commit is contained in:
parent
f504b1ba60
commit
e45ca20bbe
2
main.go
2
main.go
@ -42,7 +42,7 @@ func main() {
|
|||||||
|
|
||||||
if debugMode {
|
if debugMode {
|
||||||
log.Println("Starting service WITHOUT TLS")
|
log.Println("Starting service WITHOUT TLS")
|
||||||
log.Fatal(router.Run("localhost:8080"))
|
log.Fatal(router.Run(":8080"))
|
||||||
} else {
|
} else {
|
||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
log.Println("Starting in release mode")
|
log.Println("Starting in release mode")
|
||||||
|
Loading…
Reference in New Issue
Block a user