MINOR: peers: stop relying on srv->addr to find peer port
Now that peers entirely rely on peer->srv for connection settings, and that it was confirmed that it works properly thanks to previous commit, let's finish what we started in f6ae258 ("MINOR: peers: rely on srv->addr and remove peer->addr") and stop using srv->addr to find out peers port and instead rely on srv->svc_port as it's already done for other proxy types.
This commit is contained in:
parent
f51f438875
commit
81a8a2cae1
@ -4040,7 +4040,7 @@ static int peers_dump_peer(struct buffer *msg, struct appctx *appctx, struct pee
|
||||
peer, peer->id,
|
||||
peer->local ? "local" : "remote",
|
||||
peer->appctx ? "active" : "inactive",
|
||||
pn, get_host_port(&peer->srv->addr),
|
||||
pn, peer->srv->svc_port,
|
||||
statuscode_str(peer->statuscode));
|
||||
|
||||
chunk_appendf(msg, " last_hdshk=%s\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user