mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
public key bug and multiuser enhancement and server ip support and config file of client optimization
This commit is contained in:
@@ -50,7 +50,7 @@ func GetHttpListener() (net.Listener, error) {
|
||||
return pMux.GetHttpListener(), nil
|
||||
}
|
||||
logs.Info("start http listener, port is", httpPort)
|
||||
return getTcpListener("", httpPort)
|
||||
return getTcpListener(beego.AppConfig.String("http_proxy_ip"), httpPort)
|
||||
}
|
||||
|
||||
func GetHttpsListener() (net.Listener, error) {
|
||||
@@ -59,7 +59,7 @@ func GetHttpsListener() (net.Listener, error) {
|
||||
return pMux.GetHttpsListener(), nil
|
||||
}
|
||||
logs.Info("start https listener, port is", httpsPort)
|
||||
return getTcpListener("", httpsPort)
|
||||
return getTcpListener(beego.AppConfig.String("http_proxy_ip"), httpsPort)
|
||||
}
|
||||
|
||||
func GetWebManagerListener() (net.Listener, error) {
|
||||
|
Reference in New Issue
Block a user