change proxy listen port type

This commit is contained in:
Abhishek Kondur 2023-03-13 13:13:45 +04:00
parent 5daa73cd92
commit 178ded7572
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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"`