[client] Populate network addresses in FreeBSD system info (#5827)

This commit is contained in:
Viktor Liu
2026-04-08 23:14:16 +08:00
committed by GitHub
parent 413d95b740
commit c7ba931466

View File

@@ -43,6 +43,11 @@ func GetInfo(ctx context.Context) *Info {
systemHostname, _ := os.Hostname()
addrs, err := networkAddresses()
if err != nil {
log.Warnf("failed to discover network addresses: %s", err)
}
return &Info{
GoOS: runtime.GOOS,
Kernel: osInfo[0],
@@ -54,6 +59,7 @@ func GetInfo(ctx context.Context) *Info {
NetbirdVersion: version.NetbirdVersion(),
UIVersion: extractUserAgent(ctx),
KernelVersion: osInfo[1],
NetworkAddresses: addrs,
Environment: env,
}
}