summaryrefslogtreecommitdiff
path: root/plugins/kv/memcached/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kv/memcached/config.go')
-rw-r--r--plugins/kv/memcached/config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/kv/memcached/config.go b/plugins/kv/memcached/config.go
index 62f29ef2..7aad53b6 100644
--- a/plugins/kv/memcached/config.go
+++ b/plugins/kv/memcached/config.go
@@ -6,5 +6,7 @@ type Config struct {
}
func (s *Config) InitDefaults() {
- s.Addr = []string{"localhost:11211"} // default url for memcached // init logger
+ if s.Addr == nil {
+ s.Addr = []string{"localhost:11211"} // default url for memcached
+ }
}