mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-01-25 02:08:19 +00:00
support admin settings for private network cidr
This commit is contained in:
@@ -49,7 +49,7 @@ export const AdminSettings = () => {
|
|||||||
const cidrs = privateNetworkCidr.split(",");
|
const cidrs = privateNetworkCidr.split(",");
|
||||||
for (const cidr of cidrs) {
|
for (const cidr of cidrs) {
|
||||||
if (!isvalidIpv4OrCidr(cidr)) {
|
if (!isvalidIpv4OrCidr(cidr)) {
|
||||||
toastError(`Invalid Private network CIDR for "${cidr}"`);
|
toastError(`Invalid private network CIDR for "${cidr}"`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user