Allow configuring hosts
This commit is contained in:
@@ -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:%s", config.GetHost(), config.GetPort())
|
||||
server := &http.Server{Addr: addr, Handler: mux}
|
||||
|
||||
shutdown := make(chan os.Signal, 1)
|
||||
|
||||
Reference in New Issue
Block a user