Updated roagen.php
Do not modify $maxLength to greater value than $mask if imported from ICVPN or CHAOSVPN
This commit is contained in:
parent
5df235565f
commit
3bec9ae84c
|
@ -77,7 +77,7 @@ foreach($files as $file)
|
|||
$roas['roas'][$i]['asn'] = $asn[0];
|
||||
$roas['roas'][$i]['prefix'] = $route;
|
||||
if (isset($ta)) {
|
||||
if ($ta != 'ICVPN') {
|
||||
if ($ta != 'ICVPN' || $ta != 'CHAOSVPN') {
|
||||
$mask = ($mask <= 64 ? '64' : $mask);
|
||||
}
|
||||
} else {
|
||||
|
@ -92,7 +92,7 @@ foreach($files as $file)
|
|||
$roas['roas'][$i]['asn'] = $asn[0];
|
||||
$roas['roas'][$i]['prefix'] = $route;
|
||||
if (isset($ta)) {
|
||||
if ($ta != 'ICVPN') {
|
||||
if ($ta != 'ICVPN' || $ta != 'CHAOSVPN') {
|
||||
$mask = ($mask <= 64 ? '64' : $mask);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue