Skip to content

Commit

Permalink
Fix: Only use last portion of mac address
Browse files Browse the repository at this point in the history
  • Loading branch information
danesparza committed Sep 13, 2017
1 parent 430e865 commit f7f287a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func getMacAddr() (addr string) {
if i.Flags&net.FlagUp != 0 && bytes.Compare(i.HardwareAddr, nil) != 0 {
// Don't use random as we have a real address
addr = strings.Replace(i.HardwareAddr.String(), ":", "", -1)
addr = addr[6:len(addr)]
break
}
}
Expand Down

0 comments on commit f7f287a

Please sign in to comment.