|
@@ -35,14 +35,16 @@ type RelayedConf struct {
|
|
|
|
|
|
// PeerConf - struct for peer config in the network
|
|
// PeerConf - struct for peer config in the network
|
|
type PeerConf struct {
|
|
type PeerConf struct {
|
|
- Proxy bool `json:"proxy"`
|
|
|
|
- PublicListenPort int32 `json:"public_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"`
|
|
|
|
- IsRelayed bool `json:"is_relayed"`
|
|
|
|
- RelayedTo *net.UDPAddr `json:"relayed_to"`
|
|
|
|
|
|
+ Proxy bool `json:"proxy"`
|
|
|
|
+ PublicListenPort int32 `json:"public_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"`
|
|
|
|
+ IsRelayed bool `json:"is_relayed"`
|
|
|
|
+ RelayedTo *net.UDPAddr `json:"relayed_to"`
|
|
|
|
+ ShouldUseTurn bool `json:"should_use_turn"`
|
|
|
|
+ TurnRelayAddr net.PacketConn `json:"turn_relay_addr"`
|
|
}
|
|
}
|
|
|
|
|
|
// ProxyManagerPayload - struct for proxy manager payload
|
|
// ProxyManagerPayload - struct for proxy manager payload
|