Merge pull request #4919 from nerg4l/fix-network-global

fix: do not validate global flag as an app name
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2021-11-12 10:08:26 -05:00
commit f1b0be30e0
1 file changed
+4 -2
+4 -2
View File
@@ -142,8 +142,10 @@ 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 err := common.VerifyAppName(appName); err != nil { if appName != "--global" {
return err if err := common.VerifyAppName(appName); err != nil {
return err
}
} }
if property == "bind-all-interfaces" && value == "" { if property == "bind-all-interfaces" && value == "" {