Get oauth proxy port from the configs

This commit is contained in:
Girish Ramakrishnan
2015-09-16 10:01:31 -07:00
parent d749756b53
commit 2719c4240f
4 changed files with 5 additions and 5 deletions

View File

@@ -172,13 +172,12 @@ function initializeServer() {
return httpServer;
}
function start(port, callback) {
assert.strictEqual(typeof port, 'number');
function start(callback) {
assert.strictEqual(typeof callback, 'function');
gHttpServer = initializeServer();
gHttpServer.listen(port, callback);
gHttpServer.listen(config.get('oauthProxyPort'), callback);
}
function stop(callback) {