NodeInterface returns the name of the interface from which the NodeID was derived. The interface "user" is returned if the NodeID was set by SetNodeID.
()
| 19 | // derived. The interface "user" is returned if the NodeID was set by |
| 20 | // SetNodeID. |
| 21 | func NodeInterface() string { |
| 22 | defer nodeMu.Unlock() |
| 23 | nodeMu.Lock() |
| 24 | return ifname |
| 25 | } |
| 26 | |
| 27 | // SetNodeInterface selects the hardware address to be used for Version 1 UUIDs. |
| 28 | // If name is "" then the first usable interface found will be used or a random |
no outgoing calls