mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 17:05:29 +00:00
first interface ipv4 address (#5186)
This commit is contained in:
parent
5d30eb5d96
commit
9cc335a34c
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user