Skip to content

Commit

Permalink
Merge pull request #5 from SvenDowideit/address-family
Browse files Browse the repository at this point in the history
I guess packngo ip.Family was renamed
  • Loading branch information
Aaron Welch committed Dec 30, 2016
2 parents 5d4c08a + 5526f6e commit 0f29f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (d *Driver) Create() error {
}

for _, ip := range newDevice.Network {
if ip.Public && ip.Family == 4 {
if ip.Public && ip.AddressFamily == 4 {
d.IPAddress = ip.Address
}
}
Expand Down

0 comments on commit 0f29f79

Please sign in to comment.