Skip to content

Commit

Permalink
revert ipv6 brackets removal
Browse files Browse the repository at this point in the history
  • Loading branch information
4quarks committed Jul 15, 2022
1 parent 95c05b9 commit f68c36d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Utilities/XrdAdaptor/src/XrdSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f68c36d

Please sign in to comment.