From 5851701312f5e47c2fa0ae02b71ecbe56ef8fe23 Mon Sep 17 00:00:00 2001 From: Sketch <75850871+SketchMaster2001@users.noreply.github.com> Date: Sat, 4 Nov 2023 21:41:45 -0400 Subject: [PATCH] NAS: Use address from xml --- nas/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nas/main.go b/nas/main.go index 4a7534e..483abe4 100644 --- a/nas/main.go +++ b/nas/main.go @@ -32,7 +32,7 @@ func StartServer() { } // Finally, initialize the HTTP server - address := config.Address + ":80" + address := config.Address r := NewRoute() ac := r.HandleGroup("ac") { @@ -41,5 +41,5 @@ func StartServer() { } logging.Notice("NAS", "Starting HTTP server on", address) - log.Fatal(nhttp.ListenAndServe("0.0.0.0:80", r.Handle())) + log.Fatal(nhttp.ListenAndServe(address, r.Handle())) }