Skip to content

Commit

Permalink
Correcting the IPv6 DNS resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
4quarks committed Jun 9, 2022
1 parent 4a37491 commit 95c05b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Utilities/XrdAdaptor/src/XrdSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ 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 95c05b9

Please sign in to comment.