Skip to content

Commit 0cd6bf5

Browse files
committed
Add darkfeline's change to set ifname if no interface is found.
1 parent 9b3b1e0 commit 0cd6bf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

node.go

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func setNodeInterface(name string) bool {
4848
// does not specify a specific interface generate a random Node ID
4949
// (section 4.1.6)
5050
if name == "" {
51+
ifname = "random"
5152
randomBits(nodeID[:])
5253
return true
5354
}

0 commit comments

Comments
 (0)