From 178ded75726899fbcf265204749b8b2df40460f1 Mon Sep 17 00:00:00 2001 From: Abhishek Kondur Date: Mon, 13 Mar 2023 13:13:45 +0400 Subject: [PATCH] change proxy listen port type --- logic/peers.go | 2 +- models/proxy.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logic/peers.go b/logic/peers.go index dd2745ae..f9ade74f 100644 --- a/logic/peers.go +++ b/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), } } diff --git a/models/proxy.go b/models/proxy.go index 847c397d..8d83a3aa 100644 --- a/models/proxy.go +++ b/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"`