]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Use toStringWithPort instead of manual addr/port concat 9222/head
authorMischan Toosarani-Hausberger <migosch@gmail.com>
Thu, 11 Jun 2020 16:25:03 +0000 (18:25 +0200)
committerMischan Toosarani-Hausberger <migosch@gmail.com>
Thu, 11 Jun 2020 16:43:26 +0000 (18:43 +0200)
commitede22b612eaade1f607acff744d0d62ec69741c6
tree6d47557597079b4d4d7cf1670df5eface72d2977
parentd7cacb9f3705cf7c6ab7804f1dc701aa2d4b19a6
dnsdist: Use toStringWithPort instead of manual addr/port concat

Doing manual string concatenation like

address + ":" + port

leads to incorrectly rendered front-end labels in the metrics endpoint
when using IPv6 addresses. The same concatenation pattern was used in
the carbon-dump.
pdns/dnsdist-carbon.cc
pdns/dnsdist-web.cc