fix: do not validate global flag as an app name

This commit is contained in:
László Görög committed 2021-11-12 10:37:15 +01:00
1 parent bb54231233
commit 1222b9fdb4
1 file changed
+2
+2
View File
@@ -142,9 +142,11 @@ func CommandReport(appName string, format string, infoFlag string) error {
// CommandSet set or clear a network property for an app // CommandSet set or clear a network property for an app
func CommandSet(appName string, property string, value string) error { func CommandSet(appName string, property string, value string) error {
if appName != "--global" {
if err := common.VerifyAppName(appName); err != nil { if err := common.VerifyAppName(appName); err != nil {
return err return err
} }
}
if property == "bind-all-interfaces" && value == "" { if property == "bind-all-interfaces" && value == "" {
value = "false" value = "false"