@routr/processor 2.0.6-alpha.2 → 2.0.7-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alterations.js +2 -2
- package/package.json +3 -3
package/dist/alterations.js
CHANGED
|
@@ -52,7 +52,7 @@ const addSelfVia = (route) => {
|
|
|
52
52
|
? route.listeningPoint
|
|
53
53
|
: {
|
|
54
54
|
// fallback to lp host if there is no external ips
|
|
55
|
-
host: (_a = req.
|
|
55
|
+
host: (_a = req.externalAddrs[0]) !== null && _a !== void 0 ? _a : req.listeningPoint.host,
|
|
56
56
|
port: req.listeningPoint.port,
|
|
57
57
|
transport: req.listeningPoint.transport
|
|
58
58
|
};
|
|
@@ -158,7 +158,7 @@ const removeRoutes = (request) => {
|
|
|
158
158
|
req.message.route = req.message.route.filter((r) => {
|
|
159
159
|
const lp = request.listeningPoint;
|
|
160
160
|
const route = r.address.uri;
|
|
161
|
-
return !((route.host === lp.host || request.
|
|
161
|
+
return !((route.host === lp.host || request.externalAddrs.includes(route.host)) &&
|
|
162
162
|
route.port === lp.port);
|
|
163
163
|
});
|
|
164
164
|
return req;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/processor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7-alpha.0",
|
|
4
4
|
"description": "Processor server and API",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
|
24
24
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
|
25
25
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
26
|
-
"@routr/common": "^2.0.
|
|
26
|
+
"@routr/common": "^2.0.7-alpha.0",
|
|
27
27
|
"fp-ts": "^2.11.8"
|
|
28
28
|
},
|
|
29
29
|
"directories": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"bugs": {
|
|
44
44
|
"url": "https://github.com/fonoster/routr/issues"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "1c08d04c570d1fa156729a8f61e43c3c51b68f96"
|
|
47
47
|
}
|