mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 17:51:56 +08:00
GRA-985: rm locallistenport, added proxy public listen port field
This commit is contained in:

committed by
Matthew R Kasun

parent
c528110541
commit
63f18f539e
@@ -252,7 +252,6 @@ func GetProxyUpdateForHost(host *models.Host) (proxy_models.ProxyManagerPayload,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
var currPeerConf proxy_models.PeerConf
|
var currPeerConf proxy_models.PeerConf
|
||||||
var found bool
|
var found bool
|
||||||
if currPeerConf, found = peerConfMap[peerHost.PublicKey.String()]; !found {
|
if currPeerConf, found = peerConfMap[peerHost.PublicKey.String()]; !found {
|
||||||
|
@@ -494,7 +494,6 @@ func (ln *LegacyNode) ConvertToNewNode() (*Host, *Node) {
|
|||||||
host.HostPass = ln.Password
|
host.HostPass = ln.Password
|
||||||
host.Name = ln.Name
|
host.Name = ln.Name
|
||||||
host.ListenPort = int(ln.ListenPort)
|
host.ListenPort = int(ln.ListenPort)
|
||||||
host.LocalListenPort = int(ln.LocalListenPort)
|
|
||||||
host.ProxyListenPort = int(ln.ProxyListenPort)
|
host.ProxyListenPort = int(ln.ProxyListenPort)
|
||||||
host.MTU = int(ln.MTU)
|
host.MTU = int(ln.MTU)
|
||||||
host.PublicKey, _ = wgtypes.ParseKey(ln.PublicKey)
|
host.PublicKey, _ = wgtypes.ParseKey(ln.PublicKey)
|
||||||
|
Reference in New Issue
Block a user