mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #7943 from heyitsanthony/tcpproxy-init-msg
tcpproxy: display endpoints, not pointers, in ready to proxy string
This commit is contained in:
commit
f4641accc3
@ -82,7 +82,12 @@ func (tp *TCPProxy) Run() error {
|
||||
tp.remotes = append(tp.remotes, &remote{srv: srv, addr: addr})
|
||||
}
|
||||
|
||||
plog.Printf("ready to proxy client requests to %+v", tp.Endpoints)
|
||||
eps := []string{}
|
||||
for _, ep := range tp.Endpoints {
|
||||
eps = append(eps, fmt.Sprintf("%s:%d", ep.Target, ep.Port))
|
||||
}
|
||||
plog.Printf("ready to proxy client requests to %+v", eps)
|
||||
|
||||
go tp.runMonitor()
|
||||
for {
|
||||
in, err := tp.Listener.Accept()
|
||||
|
Loading…
x
Reference in New Issue
Block a user