mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-03 00:54:00 +08:00
NET-1075: Endpoint detection server config (#2876)
* add config for endpoint detection * add config to netmaker env file * fix config value check for endpoint detection
This commit is contained in:
@@ -134,17 +134,18 @@ func pull(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
serverConf.TrafficKey = key
|
||||
response := models.HostPull{
|
||||
Host: *host,
|
||||
Nodes: logic.GetHostNodes(host),
|
||||
ServerConfig: serverConf,
|
||||
Peers: hPU.Peers,
|
||||
PeerIDs: hPU.PeerIDs,
|
||||
HostNetworkInfo: hPU.HostNetworkInfo,
|
||||
EgressRoutes: hPU.EgressRoutes,
|
||||
FwUpdate: hPU.FwUpdate,
|
||||
ChangeDefaultGw: hPU.ChangeDefaultGw,
|
||||
DefaultGwIp: hPU.DefaultGwIp,
|
||||
IsInternetGw: hPU.IsInternetGw,
|
||||
Host: *host,
|
||||
Nodes: logic.GetHostNodes(host),
|
||||
ServerConfig: serverConf,
|
||||
Peers: hPU.Peers,
|
||||
PeerIDs: hPU.PeerIDs,
|
||||
HostNetworkInfo: hPU.HostNetworkInfo,
|
||||
EgressRoutes: hPU.EgressRoutes,
|
||||
FwUpdate: hPU.FwUpdate,
|
||||
ChangeDefaultGw: hPU.ChangeDefaultGw,
|
||||
DefaultGwIp: hPU.DefaultGwIp,
|
||||
IsInternetGw: hPU.IsInternetGw,
|
||||
EndpointDetection: servercfg.IsEndpointDetectionEnabled(),
|
||||
}
|
||||
|
||||
logger.Log(1, hostID, "completed a pull")
|
||||
|
||||
Reference in New Issue
Block a user