mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 01:02:12 +08:00
public key bug and multiuser enhancement and server ip support and config file of client optimization
This commit is contained in:
1 parent
00a4a33c5f
commit
42a73fa392
22 files changed
+155
-70
No files matched your search
@@ -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