From f68c36ddbb73d2c95f821beb24297eb819d6e46a Mon Sep 17 00:00:00 2001 From: 4quarks <47900195+4quarks@users.noreply.github.com> Date: Fri, 15 Jul 2022 09:54:14 +0200 Subject: [PATCH] revert ipv6 brackets removal --- Utilities/XrdAdaptor/src/XrdSource.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/Utilities/XrdAdaptor/src/XrdSource.cc b/Utilities/XrdAdaptor/src/XrdSource.cc index ce09fe9a490e5..31297459dad6a 100644 --- a/Utilities/XrdAdaptor/src/XrdSource.cc +++ b/Utilities/XrdAdaptor/src/XrdSource.cc @@ -223,8 +223,6 @@ bool Source::getHostname(const std::string &id, std::string &hostname) { hostname = id; if ((pos != std::string::npos) && (pos > 0)) { hostname = id.substr(0, pos); - hostname.erase(remove(hostname.begin(), hostname.end(), ']'), hostname.end()); - hostname.erase(remove(hostname.begin(), hostname.end(), '['), hostname.end()); } bool retval = true;