fix: hostname and port not used on initialization of server

This commit is contained in:
Guz
2026-02-22 10:38:45 -03:00
parent 75b0ddc9eb
commit d300de4601

View File

@@ -45,7 +45,7 @@ func main() {
}
srv := &http.Server{
Addr: fmt.Sprintf("%s:%d", "", 8080),
Addr: fmt.Sprintf("%s:%d", *hostname, *port),
Handler: newRouter(as, ts, log),
}