feat: collect location from netdesk

This commit is contained in:
the_aceix
2025-06-12 13:22:43 +00:00
parent d978de08d0
commit 71dafa45cf
3 changed files with 9 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ type ExtClient struct {
DeviceName string `json:"device_name"`
PublicEndpoint string `json:"public_endpoint"`
Country string `json:"country"`
Location string `json:"location"` //format: lat,long
Mutex *sync.Mutex `json:"-"`
}
@@ -47,6 +48,7 @@ type CustomExtClient struct {
IsAlreadyConnectedToInetGw bool `json:"is_already_connected_to_inet_gw"`
PublicEndpoint string `json:"public_endpoint"`
Country string `json:"country"`
Location string `json:"location"` //format: lat,long
}
func (ext *ExtClient) ConvertToStaticNode() Node {