Support mono-stack IP addressing
This commit is contained in:
parent
1b5f4b35ce
commit
d3f8ba3be5
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ func (g *IPAddress) getAdapterIPAddress() (string, error) {
|
|||
}
|
||||
|
||||
for i, field := range fields {
|
||||
if field == "inet" {
|
||||
if field == "inet" || field == "inet6" {
|
||||
ipAddr = fields[i+1]
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue