Browse Source

GRA-985: rm locallistenport, added proxy public listen port field

Abhishek Kondur 2 years ago
parent
commit
63f18f539e
2 changed files with 0 additions and 2 deletions
  1. 0 1
      logic/peers.go
  2. 0 1
      models/node.go

+ 0 - 1
logic/peers.go

@@ -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 {

+ 0 - 1
models/node.go

@@ -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)