diff --git a/control/rule.go b/control/rule.go index 0edd6d1f..7b817553 100644 --- a/control/rule.go +++ b/control/rule.go @@ -105,7 +105,13 @@ func (m *Control) IsEnabledIn(gid int64) bool { m.RUnlock() if err == nil && c.GroupID == 0 { logrus.Debugf("[control] plugin %s of all : %d", m.service, c.Disable) - return c.Disable == 0 + if m.options.DisableOnDefault { + if c.Disable == 0 { + return true + } + } else if c.Disable != 0 { + return false + } } return !m.options.DisableOnDefault }