Skip to content

Commit

Permalink
Check if running on localhost before setting Dafs port to 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelv committed Jul 8, 2024
1 parent 1f2b539 commit 4cceb25
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dali/dfuXRefLib/dfuxreflib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1903,11 +1903,9 @@ class CXRefManager: public CXRefManagerBase
Owned<IPropertyTree> results;
{
CriticalUnblock unblock(manager.logsect);
#ifdef _CONTAINERIZED
unsigned short port = 0; // No need to connect to Dafs, data is available through mounted storage planes
#else
unsigned short port = getDafsPort(node.endpoint(),numfails,&crit);
#endif
unsigned short port = 0;
if (!strieq(msg, "localhost"))
port = getDafsPort(node.endpoint(),numfails,&crit);
results.setown(getDirectory(dirlist,&node,port));
}
manager.log("Crossreferencing %s",msg.str());
Expand Down

0 comments on commit 4cceb25

Please sign in to comment.