Add a way to configure host
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user