mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-19 04:27:46 +00:00
when running under K8S set JAMBONES_NETWORK_CIDR as private ip address space
This commit is contained in:
3
app.js
3
app.js
@@ -126,7 +126,8 @@ srf.locals = {
|
|||||||
writeAlerts,
|
writeAlerts,
|
||||||
AlertType
|
AlertType
|
||||||
};
|
};
|
||||||
const cidrs = process.env.JAMBONES_NETWORK_CIDR
|
const cidrsEnv = process.env.JAMBONES_NETWORK_CIDR || '192.168.0.0/24,172.16.0.0/16,10.0.0.0/8';
|
||||||
|
const cidrs = cidrsEnv
|
||||||
.split(',')
|
.split(',')
|
||||||
.map((s) => s.trim());
|
.map((s) => s.trim());
|
||||||
const matcher = new CIDRMatcher(cidrs);
|
const matcher = new CIDRMatcher(cidrs);
|
||||||
|
|||||||
Reference in New Issue
Block a user