mirror of
https://github.com/status-im/consul.git
synced 2025-02-20 09:28:34 +00:00
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
|
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.BindAddress = host
|
||||||
listener.BindPort = int(port)
|
listener.BindPort = int(port)
|
||||||
listener.LocalServiceAddress = c.serviceAddr
|
listener.LocalServiceAddress = c.serviceAddr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user