@@ -426,6 +426,7 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N
}
hostPeerUpdate.ManageDNS = servercfg.GetManageDNS()
+ hostPeerUpdate.Stun = servercfg.IsStunEnabled()
return hostPeerUpdate, nil
@@ -25,6 +25,7 @@ type HostPeerUpdate struct {
ReplacePeers bool `json:"replace_peers"`
EndpointDetection bool `json:"endpoint_detection"`
ManageDNS bool `yaml:"manage_dns"`
+ Stun bool `yaml:"stun"`
type FwRule struct {