include source port in X-Forwarded-For

This commit is contained in:
Dave Horton
2020-01-17 09:11:51 -05:00
parent be5a143876
commit b500d676e4
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -9,6 +9,7 @@ module.exports = function(srf, logger) {
try {
const gateway = await lookupSipGatewayBySignalingAddress(req.source_address, req.source_port);
if (!gateway) {
// TODO: if uri.host is not a domain, just reject
req.locals.originator = 'device';
return authenticator(req, res, next);
}