mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-18 20:17:47 +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,
|
||||
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(',')
|
||||
.map((s) => s.trim());
|
||||
const matcher = new CIDRMatcher(cidrs);
|
||||
|
||||
Reference in New Issue
Block a user