fix: use listenAddr instead of hardcode listen address
This commit is contained in:
parent
fe2aaf8537
commit
d8e77cc756
2
main.go
2
main.go
@ -126,5 +126,5 @@ func main() {
|
||||
r.POST("/v1/fromPost", shortie.FromPost(t))
|
||||
|
||||
log.Printf("Domain: %s, URL Proto: %s, Listen Address: %s\n", shortie.Domain, shortie.Proto, listenAddr)
|
||||
log.Fatal(fasthttp.ListenAndServe(":8080", logger(r.Handler)))
|
||||
log.Fatal(fasthttp.ListenAndServe(listenAddr, logger(r.Handler)))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user