mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-09-25 00:35:32 -05:00
NAS: Use address from xml
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user