Skip to content

Commit

Permalink
a[TPC] Assume delegation if the tpc.scgi token is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Dec 4, 2019
1 parent 9f4852e commit a84c675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XrdOfs/XrdOfs.cc
Expand Up @@ -522,7 +522,8 @@ int XrdOfsFile::open(const char *path, // In
// Check if we will be redirecting the tpc request
//
if (tpcKey && isRW)
{int k = (strcmp(tpcKey, "delegate") ? 1 : 0);
{const char *scgi = Open_Env.Get(XrdOucTPC::tpcSgi);
int k = ((strcmp(tpcKey, "delegate") || scgi) ? 1 : 0);
if (XrdOfsFS->tpcRdrHost[k])
{error.setErrInfo(XrdOfsFS->tpcRdrPort[k], XrdOfsFS->tpcRdrHost[k]);
return SFS_REDIRECT;
Expand Down

0 comments on commit a84c675

Please sign in to comment.