From 0cd6bf5da1e1c83f8b45653022c74f71af0538a4 Mon Sep 17 00:00:00 2001 From: Paul Borman Date: Wed, 27 Feb 2019 15:05:49 -0600 Subject: [PATCH] Add darkfeline's change to set ifname if no interface is found. --- node.go | 1 + 1 file changed, 1 insertion(+) diff --git a/node.go b/node.go index 3e4e90d..d651a2b 100644 --- a/node.go +++ b/node.go @@ -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 }