Skip to content

Commit

Permalink
Check FlagRunning
Browse files Browse the repository at this point in the history
  • Loading branch information
otbutz authored Aug 21, 2023
1 parent ccec8a4 commit b871f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/osutil/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func GetLans() ([]*net.IPNet, error) {
var addrs []net.Addr

for _, currentIf := range ifs {
if currentIf.Flags&net.FlagUp != net.FlagUp {
if currentIf.Flags&net.FlagRunning != net.FlagRunning {
continue
}
currentAddrs, err := currentIf.Addrs()
Expand Down

0 comments on commit b871f31

Please sign in to comment.