18 lines
401 B
Plaintext
18 lines
401 B
Plaintext
function unet_is_valid_network_v4() {
|
|
return net ~ [
|
|
10.0.0.0/8+
|
|
];
|
|
}
|
|
|
|
function unet_is_valid_network_v4_allnet(){
|
|
if unet_is_valid_network_v4() then return true;
|
|
if is_self_net() then return true;
|
|
if is_dn42_self_net() then return true;
|
|
return false;
|
|
}
|
|
|
|
function unet_is_voalid_net_v6(){
|
|
if is_self_net() then return true;
|
|
if is_dn42_self_net() then return true;
|
|
return false;
|
|
} |