Skip to content

Commit

Permalink
first interface ipv4 address (#5186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 authored May 19, 2024
1 parent 5d30eb5 commit 9cc335a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/protocols/common/protocolstate/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func interfaceAddress(interfaceName string) (net.IP, error) {
if ipnet, ok := addr.(*net.IPNet); ok && !ipnet.IP.IsLoopback() {
if ipnet.IP.To4() != nil {
address = ipnet.IP
break
}
}
}
Expand Down

0 comments on commit 9cc335a

Please sign in to comment.