From 3e2e9fbd9650c44d57a41a9dc702fe93aad2b77f Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 11 Aug 2021 11:45:24 +0300 Subject: Replace all 'localhost' with '127.0.0.1'. Fix default configuration and other small bugs. Signed-off-by: Valery Piashchynski --- plugins/kv/drivers/memcached/config.go | 2 +- plugins/kv/plugin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/kv') 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 -- cgit v1.2.3