Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetSystemIps doesn't report every available ips in Dockerized wings #71

Open
RMartinOscar opened this issue Feb 9, 2025 · 0 comments
Open

Comments

@RMartinOscar
Copy link
Contributor

Because it gets them from the net package instead of from host/docker

wings/system/system.go

Lines 156 to 169 in de4ea00

func GetSystemIps() (*IpAddresses, error) {
var ip_addrs []string
iface_addrs, err := net.InterfaceAddrs()
if err != nil {
return nil, err
}
for _, addr := range iface_addrs {
ipNet, valid := addr.(*net.IPNet)
if valid && !ipNet.IP.IsLoopback() {
ip_addrs = append(ip_addrs, ipNet.IP.String())
}
}
return &IpAddresses{IpAddresses: ip_addrs}, nil
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant