diff options
author | Valery Piashchynski <[email protected]> | 2021-08-11 11:45:24 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-11 11:45:24 +0300 |
commit | 3e2e9fbd9650c44d57a41a9dc702fe93aad2b77f (patch) | |
tree | 38f25c3c0679e8510b896d001d1b7dccf21c4bd8 /plugins/kv | |
parent | d449d9d5aec1eec6d494064299feb1551f88ffe2 (diff) |
Replace all 'localhost' with '127.0.0.1'. Fix default configuration and
other small bugs.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/kv')
-rw-r--r-- | plugins/kv/drivers/memcached/config.go | 2 | ||||
-rw-r--r-- | plugins/kv/plugin.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/kv/drivers/memcached/config.go b/plugins/kv/drivers/memcached/config.go index 7aad53b6..6d413790 100644 --- a/plugins/kv/drivers/memcached/config.go +++ b/plugins/kv/drivers/memcached/config.go @@ -7,6 +7,6 @@ type Config struct { func (s *Config) InitDefaults() { if s.Addr == nil { - s.Addr = []string{"localhost:11211"} // default url for memcached + s.Addr = []string{"127.0.0.1:11211"} // default url for memcached } } diff --git a/plugins/kv/plugin.go b/plugins/kv/plugin.go index e9ea25df..53fade97 100644 --- a/plugins/kv/plugin.go +++ b/plugins/kv/plugin.go @@ -80,7 +80,7 @@ func (p *Plugin) Serve() chan error { //nolint:gocognit memcached: driver: memcached - addr: [ "localhost:11211" ] + addr: [ "127.0.0.1:11211" ] For this config we should have 3 constructors: memory, boltdb and memcached but 4 KVs: default, boltdb-south, boltdb-north and memcached |