Comparing version 0.4.96 to 0.5.0
@@ -132,2 +132,3 @@ const debug = require('debug') ('sipware:transaction') | ||
var via = resp.via; | ||
debug('Dispatch via', this.counter, via, resp.headers); | ||
@@ -151,3 +152,10 @@ if(resp.seq == undefined) { | ||
if(via && via[0]) { | ||
return '*' == via[0].split(';') [1] | ||
var [session, users] = via[0].split(';'); | ||
if(session === '127.0.0.1') { | ||
via.shift(); | ||
resp.req.headers.via = via; | ||
} | ||
return '*' == users; | ||
} | ||
@@ -154,0 +162,0 @@ } |
@@ -67,3 +67,3 @@ { | ||
"optionalDependencies": {}, | ||
"version": "0.4.96", | ||
"version": "0.5.0", | ||
"directories": { | ||
@@ -70,0 +70,0 @@ "lib": "lib" |
125167
3046