Skip to content

Commit

Permalink
underscore unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jftuga committed Oct 2, 2023
1 parent 4a5b624 commit c033c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nics.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func getMainNic() string {
return "0.0.0.0"
}

allIPv4, allIPv6 := extractIPAddrs(iface.Name, allAddresses, true)
allIPv4, _ := extractIPAddrs(iface.Name, allAddresses, true)
if len(allIPv4) == 1 && strings.ToLower(iface.Name) == "eth0" {
for _, ipWithMask := range allIPv4 {
ip := strings.Split(ipWithMask, "/")
Expand Down

0 comments on commit c033c2f

Please sign in to comment.