add egress domain to host pull

This commit is contained in:
abhishek9686 2025-08-15 17:25:36 +05:30
parent b4535dd7d2
commit 19bcaa2704
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -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 {