API server listens with the address of PHOTOVIEW_LISTEN_IP, #1010. (#1014)

Fix the listened host reference in the `main()` function
This commit is contained in:
Googol Lee
2024-08-09 16:32:07 +02:00
committed by GitHub
parent ebcbe6c057
commit cf1a66975d
2 changed files with 2 additions and 2 deletions

View File

@@ -119,5 +119,5 @@ func main() {
}
log.Panic(http.ListenAndServe(":"+apiListenURL.Port(), handlers.CompressHandler(rootRouter)))
log.Panic(http.ListenAndServe(apiListenURL.Host, handlers.CompressHandler(rootRouter)))
}