mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-11 01:24:42 +08:00
merge ranges
This commit is contained in:
@@ -4,6 +4,11 @@ import "fmt"
|
||||
|
||||
// SetConfig set config by config key(name) and value
|
||||
func SetConfig(key string, val interface{}) (err error) {
|
||||
if key == throwPacketRate.name {
|
||||
err = throwPacketRate.setVal(val)
|
||||
return
|
||||
}
|
||||
|
||||
configMapLock.Lock()
|
||||
defer configMapLock.Unlock()
|
||||
|
||||
|
Reference in New Issue
Block a user