Skip to content

Commit

Permalink
Add darkfeline's change to set ifname if no interface is found.
Browse files Browse the repository at this point in the history
  • Loading branch information
pborman committed Feb 27, 2019
1 parent 9b3b1e0 commit 0cd6bf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node.go
Expand Up @@ -48,6 +48,7 @@ func setNodeInterface(name string) bool {
// does not specify a specific interface generate a random Node ID
// (section 4.1.6)
if name == "" {
ifname = "random"
randomBits(nodeID[:])
return true
}
Expand Down

0 comments on commit 0cd6bf5

Please sign in to comment.