From 92ce8edf0041c9aa96f5b4fc458082daae7667cc Mon Sep 17 00:00:00 2001 From: Mark Schroering Date: Mon, 24 Jun 2019 09:50:04 -0400 Subject: [PATCH] Only listen on local interface to prevent requests coming in from remote locations during auth process --- lib/oauth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauth.js b/lib/oauth.js index 3978e52..e22d57b 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -157,5 +157,5 @@ module.exports.login = () => { .on('listening', showLogin(environment, state, verifier)) .on('error', err => { throw err; }) .on('request', requestHandler(environment, server, state, verifier)) - .listen(PORT); + .listen(PORT, 'localhost'); };