mirror of https://github.com/status-im/consul.git
command/connect/proxy: -service-addr required for -listen
This commit is contained in:
parent
83f2509c6f
commit
b1d709fc9f
|
@ -226,6 +226,12 @@ func (c *cmd) configWatcher(client *api.Client) (proxyImpl.ConfigWatcher, error)
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if c.serviceAddr == "" {
|
||||
return nil, fmt.Errorf(
|
||||
"-service-addr must be specified with -listen so the proxy " +
|
||||
"knows the backend service address.")
|
||||
}
|
||||
|
||||
listener.BindAddress = host
|
||||
listener.BindPort = int(port)
|
||||
listener.LocalServiceAddress = c.serviceAddr
|
||||
|
|
Loading…
Reference in New Issue