Comparing version 0.5.2 to 0.5.4
@@ -151,10 +151,14 @@ const debug = require('debug') ('sipware:transaction') | ||
if(via && via[0]) { | ||
var [session, users] = via[0].split(';'); | ||
var idx = via[0].indexOf(';'); | ||
if(session === '127.0.0.1') { | ||
via.shift(); | ||
resp.req.headers.via = via; | ||
if(idx > 0) { | ||
var [session, users] = [via[0].slice(0, idx), via[0].slice(idx + 1)]; | ||
if(session === '127.0.0.1') { | ||
via.shift(); | ||
resp.req.headers.via = via; | ||
} | ||
return '*' === users; | ||
} | ||
return '*' == users; | ||
} | ||
@@ -161,0 +165,0 @@ } |
@@ -67,3 +67,3 @@ { | ||
"optionalDependencies": {}, | ||
"version": "0.5.2", | ||
"version": "0.5.4", | ||
"directories": { | ||
@@ -70,0 +70,0 @@ "lib": "lib" |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
125402
3052
5