Make it work for ipv4 and ipv6

This commit is contained in:
Ben Sarmiento
2023-11-07 13:53:42 +01:00
parent a7d7c4ae0d
commit 1349de7d3f

View File

@@ -32,7 +32,7 @@ func main() {
mux := http.NewServeMux()
net.Router(mux, config, torrentMgr, cache)
addr := fmt.Sprintf(":%s", config.GetPort())
addr := fmt.Sprintf("[::]:%s", config.GetPort())
server := &http.Server{Addr: addr, Handler: mux}
shutdown := make(chan os.Signal, 1)