Skip to content

Commit

Permalink
Remove use of XrdSysDNS missed in previous IPV6 merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jul 7, 2013
1 parent db4803f commit a33ba9f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/XrdSec/XrdSecServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@
#include <stdio.h>
#include <sys/param.h>

#include "XrdSys/XrdSysDNS.hh"
#include "XrdSys/XrdSysLogger.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysError.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdOuc/XrdOucErrInfo.hh"
#include "XrdNet/XrdNetAddrInfo.hh"
#include "XrdNet/XrdNetAddr.hh"

#include "XrdSec/XrdSecInterface.hh"
#include "XrdSec/XrdSecServer.hh"
Expand Down Expand Up @@ -583,10 +582,13 @@ int XrdSecServer::xpbind(XrdOucStream &Config, XrdSysError &Eroute)
*sectoken = '\0';
}

// Translate "localhost" to our local hostname
// Translate "localhost" to our local hostname, if possible.
//
if (!strcmp("localhost", thost))
{free(thost); thost = XrdSysDNS::getHostName();}
{XrdNetAddr myIPAddr(0);
free(thost);
thost = strdup(myIPAddr.Name("localhost"));
}

// Create new bind object
//
Expand Down

0 comments on commit a33ba9f

Please sign in to comment.