Browse Source

change proxy listen port type

Abhishek Kondur 2 years ago
parent
commit
178ded7572
2 changed files with 2 additions and 2 deletions
  1. 1 1
      logic/peers.go
  2. 1 1
      models/proxy.go

+ 1 - 1
logic/peers.go

@@ -90,7 +90,7 @@ func GetProxyUpdateForHost(ctx context.Context, host *models.Host) (models.Proxy
 				currPeerConf = models.PeerConf{
 					Proxy:            peerHost.ProxyEnabled,
 					PublicListenPort: int32(GetPeerListenPort(peerHost)),
-					ProxyListenPort:  int32(GetProxyListenPort(peerHost)),
+					ProxyListenPort:  GetProxyListenPort(peerHost),
 				}
 			}
 

+ 1 - 1
models/proxy.go

@@ -37,7 +37,7 @@ type RelayedConf struct {
 type PeerConf struct {
 	Proxy            bool         `json:"proxy"`
 	PublicListenPort int32        `json:"public_listen_port"`
-	ProxyListenPort  int32        `json:"proxy_listen_port"`
+	ProxyListenPort  int          `json:"proxy_listen_port"`
 	IsExtClient      bool         `json:"is_ext_client"`
 	Address          net.IP       `json:"address"`
 	ExtInternalIp    net.IP       `json:"ext_internal_ip"`