1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-03 03:11:01 +01:00

Allow new Conduit clients by default.

Summary:
There's no reason to default-reject clients since they can just
pretend to be arc anyway. If they're speaking the right protocol, let them
communicate over Conduit.

Test Plan:
Changed arc to identify as 'arczsdba', ran an arc command.

Reviewed By: simpkins
Reviewers: simpkins
CC: simpkins
Differential Revision: 132
This commit is contained in:
epriestley 2011-04-13 18:56:32 -07:00
parent 2bd51fd125
commit d4fb7f578e
2 changed files with 3 additions and 1 deletions

View file

@ -102,7 +102,8 @@ class ConduitAPI_conduit_connect_Method extends ConduitAPIMethod {
} }
break; break;
default: default:
throw new ConduitException('ERR-UNKNOWN-CLIENT'); // Allow new clients by default.
break;
} }
$token = $request->getValue('authToken'); $token = $request->getValue('authToken');

View file

@ -10,6 +10,7 @@ phutil_require_module('phabricator', 'applications/conduit/method/base');
phutil_require_module('phabricator', 'applications/conduit/protocol/exception'); phutil_require_module('phabricator', 'applications/conduit/protocol/exception');
phutil_require_module('phabricator', 'applications/conduit/storage/connectionlog'); phutil_require_module('phabricator', 'applications/conduit/storage/connectionlog');
phutil_require_module('phabricator', 'applications/people/storage/user'); phutil_require_module('phabricator', 'applications/people/storage/user');
phutil_require_module('phabricator', 'infrastructure/env');
phutil_require_module('phabricator', 'storage/queryfx'); phutil_require_module('phabricator', 'storage/queryfx');
phutil_require_module('phutil', 'utils'); phutil_require_module('phutil', 'utils');