21 lines
467 B
Plaintext
21 lines
467 B
Plaintext
function unet_is_valid_network_v4() {
|
|
return net ~ [
|
|
10.50.0.0/16+,
|
|
10.88.0.0/16+,
|
|
10.21.0.0/16+,
|
|
10.188.0.0/16+
|
|
];
|
|
}
|
|
|
|
function unet_is_valid_network_v4_allnet(){
|
|
if unet_is_valid_network_v4() then return true;
|
|
if is_self_net() then return true;
|
|
if dn42_is_self_net() then return true;
|
|
return false;
|
|
}
|
|
|
|
function unet_is_voalid_net_v6(){
|
|
if is_self_net_v6() then return true;
|
|
if dn42_is_self_net_v6() then return true;
|
|
return false;
|
|
} |