diff --git a/funcs/swifstat.go b/funcs/swifstat.go index 17d4a80..a722a11 100644 --- a/funcs/swifstat.go +++ b/funcs/swifstat.go @@ -132,7 +132,7 @@ func AllSwitchIp() (allIp []string) { } func SwIfMetrics() (L []*model.MetricValue) { - if g.Config().Switch.Enabled && len(g.Config().Switch.IpRange) > 0 { + if g.Config().Switch.Enabled { return swIfMetrics() } return diff --git a/g/const.go b/g/const.go index d5c4a49..9891484 100644 --- a/g/const.go +++ b/g/const.go @@ -25,6 +25,6 @@ import ( // 4.1.1 n9e mode support debug // 4.2.0 support get allip from ecmc nodes const ( - VERSION = "4.2.0" + VERSION = "4.2.1" COLLECT_INTERVAL = time.Second )