mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-10-04 02:04:22 +00:00
include source port in X-Forwarded-For
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user