-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config: fix url config #43
Conversation
Signed-off-by: xhe <xw897002528@gmail.com>
var wg waitgroup.WaitGroup | ||
wg.Run(func() { | ||
if err := srv.Run(cmd.Context()); err != nil { | ||
logger.Error("shutdown with error", zap.Error(err)) | ||
} | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since Run
(the listener) is blocking, we must run it in a separate go routine.
- "0.0.0.0:2379" | ||
- "http://0.0.0.0:3080" | ||
advertise-urls: | ||
- "http://127.0.0.1:3080" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why some of them are 0.0.0.0
while others 127.0.0.1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
advertise-xxx
is used by etcd server to tell other etcd servers what address they should use to connect. 0.0.0.0
is correct for Listen()
but wrong for Dial()
. We could change both to 127.0.0.1
.
listen/advertise-urls
are used for etcd client. xxx-peer-urls
are for inter-etcd-servers communication.
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe xw897002528@gmail.com
What problem does this PR solve?
Issue Number: ref #23
Problem Summary: Fix logic of handling
urls
.What is changed and how it works:
config/weirproxy.yaml
.Check List
Tests
Notable changes
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.