Files
bird_config/bird/function/unet.conf
2026-01-26 11:20:16 +08:00

21 lines
477 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_inet4() then return true;
if is_self_net_dn42v4() then return true;
return false;
}
function unet_is_voalid_net_v6(){
if is_self_net_inet6() then return true;
if is_self_net_dn42v6() then return true;
return false;
}