mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-10 23:24:32 +08:00
add egress domain to host pull
This commit is contained in:
parent
b4535dd7d2
commit
19bcaa2704
2 changed files with 4 additions and 0 deletions
|
@ -245,6 +245,8 @@ func pull(w http.ResponseWriter, r *http.Request) {
|
|||
ChangeDefaultGw: hPU.ChangeDefaultGw,
|
||||
DefaultGwIp: hPU.DefaultGwIp,
|
||||
IsInternetGw: hPU.IsInternetGw,
|
||||
NameServers: hPU.NameServers,
|
||||
EgressWithDomains: hPU.EgressWithDomains,
|
||||
EndpointDetection: logic.IsEndpointDetectionEnabled(),
|
||||
}
|
||||
|
||||
|
|
|
@ -254,6 +254,8 @@ type HostPull struct {
|
|||
DefaultGwIp net.IP `json:"default_gw_ip"`
|
||||
IsInternetGw bool `json:"is_inet_gw"`
|
||||
EndpointDetection bool `json:"endpoint_detection"`
|
||||
NameServers []string `json:"name_servers"`
|
||||
EgressWithDomains []EgressDomain `json:"egress_with_domains"`
|
||||
}
|
||||
|
||||
type DefaultGwInfo struct {
|
||||
|
|
Loading…
Add table
Reference in a new issue