Skip to content

Commit

Permalink
[Server] Use new tpc.dlgon CGI token to drive tpc redirection.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 authored and simonmichal committed Jan 22, 2020
1 parent cf7190c commit 8cde3e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdOfs/XrdOfs.cc
Expand Up @@ -511,8 +511,8 @@ int XrdOfsFile::open(const char *path, // In
// Check if we will be redirecting the tpc request
//
if (tpcKey && isRW)
{const char *scgi = Open_Env.Get(XrdOucTPC::tpcSgi);
int k = ((strcmp(tpcKey, "delegate") || scgi) ? 1 : 0);
{const char *dOn = Open_Env.Get(XrdOucTPC::tpcDlgOn);
int k = ((dOn && *dOn == '1') || strcmp(tpcKey, "delegate") ? 1 : 0);
if (XrdOfsFS->tpcRdrHost[k])
{error.setErrInfo(XrdOfsFS->tpcRdrPort[k], XrdOfsFS->tpcRdrHost[k]);
return SFS_REDIRECT;
Expand Down

0 comments on commit 8cde3e6

Please sign in to comment.