Merge pull request #539 from abligh/make-iface-mandatory
Error if neither -iface or -name is specified
This commit is contained in:
commit
db302a0d3d
1 file changed
+3
@@ -91,6 +91,9 @@ func main() {
|
||||
}
|
||||
|
||||
if routerName == "" {
|
||||
if iface == nil {
|
||||
log.Fatal("Either an interface must be specified with -iface or a name with -name")
|
||||
}
|
||||
routerName = iface.HardwareAddr.String()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user