Add a way to configure host

This commit is contained in:
Ben Sarmiento
2023-11-07 14:14:33 +01:00
parent d4f309072d
commit d5746fcf5a
5 changed files with 18 additions and 63 deletions

View File

@@ -35,7 +35,7 @@ func main() {
mux := http.NewServeMux()
net.Router(mux, config, torrentMgr, cache)
addr := fmt.Sprintf(":%s", config.GetPort())
addr := fmt.Sprintf("%s:%s", config.GetHost(), config.GetPort())
server := &http.Server{Addr: addr, Handler: mux}
mountPoint := config.GetMountPoint()