Merge pull request #539 from abligh/make-iface-mandatory

Error if neither -iface or -name is specified
This commit is contained in:
rade committed 2015-04-10 15:22:07 +01:00
commit db302a0d3d
1 file changed
+3
+3
View File
@@ -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()
}