]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: tools: make ipcpy() preserve the original port
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Nov 2016 17:47:01 +0000 (18:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 5 Nov 2016 12:56:04 +0000 (13:56 +0100)
commitdc3a9e830c3f91774f67693cf766f293dc673ec9
tree5460bf30799af7917ed6550a58dd0dd7a9c3d636
parentecde7df11b31f3fdefd90c6f7c8ba9cfa9ec8d35
CLEANUP: tools: make ipcpy() preserve the original port

ipcpy() is used to replace an IP address with another one, but it
doesn't preserve the original port so all callers have to do it
manually while it's trivial to do there. Better do it inside the
function.
src/server.c
src/standard.c