Skip to content

Commit

Permalink
first interface ipv4 address
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed May 15, 2024
1 parent 4874729 commit cc3b12d
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 cc3b12d

Please sign in to comment.