Make it work for ipv4 and ipv6
This commit is contained in:
@@ -32,7 +32,7 @@ func main() {
|
|||||||
mux := http.NewServeMux()
|
mux := http.NewServeMux()
|
||||||
net.Router(mux, config, torrentMgr, cache)
|
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}
|
server := &http.Server{Addr: addr, Handler: mux}
|
||||||
|
|
||||||
shutdown := make(chan os.Signal, 1)
|
shutdown := make(chan os.Signal, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user