diff --git a/config/config.go b/config/config.go index 2a34989f2..13facceaf 100644 --- a/config/config.go +++ b/config/config.go @@ -58,7 +58,7 @@ type ServiceConfig struct { // port to bind the lura service Port int `mapstructure:"port"` // address to listen - Address string `mapstructure:"listen_address"` + Address string `mapstructure:"listen_ip"` // version code of the configuration Version int `mapstructure:"version"` // OutputEncoding defines the default encoding strategy to use for the endpoint responses diff --git a/config/parser.go b/config/parser.go index 01c388363..df1dcda14 100644 --- a/config/parser.go +++ b/config/parser.go @@ -139,7 +139,7 @@ type parseableServiceConfig struct { CacheTTL string `json:"cache_ttl"` Host []string `json:"host"` Port int `json:"port"` - Address string `json:"listen_address"` + Address string `json:"listen_ip"` Version int `json:"version"` ExtraConfig *ExtraConfig `json:"extra_config,omitempty"` ReadTimeout string `json:"read_timeout"`