We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 896ce16 commit 6fd2dfdCopy full SHA for 6fd2dfd
etcdmain/config.go
@@ -258,8 +258,12 @@ func (cfg *config) Parse(arguments []string) error {
258
if err != nil {
259
return err
260
}
261
- if flags.IsSet(cfg.FlagSet, "listen-client-urls") && !flags.IsSet(cfg.FlagSet, "advertise-client-urls") {
262
- return errUnsetAdvertiseClientURLsFlag
+
+ // when etcd runs in member mode user needs to set -advertise-client-urls if -listen-client-urls is set.
263
+ if cfg.proxy.String() != proxyFlagOn {
264
+ if flags.IsSet(cfg.FlagSet, "listen-client-urls") && !flags.IsSet(cfg.FlagSet, "advertise-client-urls") {
265
+ return errUnsetAdvertiseClientURLsFlag
266
+ }
267
268
269
if 5*cfg.TickMs > cfg.ElectionMs {
0 commit comments