update isPrivateVoipNetwork function (#189)

This commit is contained in:
Sam Machin
2025-09-02 13:02:59 +01:00
committed by GitHub
parent 55fef10f0e
commit 616228bf09

View File

@@ -290,7 +290,7 @@ const isPrivateVoipNetwork = async(uri) => {
if (privateNetworkCidr) { if (privateNetworkCidr) {
try { try {
const matcher = new CIDRMatcher(privateNetworkCidr.split(',')); const matcher = new CIDRMatcher(privateNetworkCidr.split(','));
const arr = /sips?:.*@(.*?)(:\d+)?(;.*)$/.exec(uri); const arr = /sips?:.*@(.*?)(:\d+)?(;.*)?$/.exec(uri);
if (arr) { if (arr) {
const input = arr[1]; const input = arr[1];
let addresses; let addresses;