1
0
Fork 0

Update roagen.php

This commit is contained in:
netravnen 2018-12-14 18:32:46 +00:00
parent dd79b8f4d2
commit 8d7b160b31
1 changed files with 6 additions and 6 deletions

View File

@ -244,8 +244,8 @@ fclose ($fp);
// Write TEXT to file in bird format // Write TEXT to file in bird format
$fq = fopen ('roa/bird_roa_dn42.conf', 'w'); $fq = fopen ('roa/bird_roa_dn42.conf', 'w');
$fr = fopen ('roa/bird4_roa_dn42.conf', 'w'); $fq4 = fopen ('roa/bird4_roa_dn42.conf', 'w');
$fs = fopen ('roa/bird6_roa_dn42.conf', 'w'); $fq6 = fopen ('roa/bird6_roa_dn42.conf', 'w');
foreach ($roas["roas"] as $roa) foreach ($roas["roas"] as $roa)
{ {
@ -258,14 +258,14 @@ foreach ($roas["roas"] as $roa)
fwrite ($fq, $strng); fwrite ($fq, $strng);
if (strpos ($prfx, ":") !== false) if (strpos ($prfx, ":") !== false)
fwrite ($fr, $strng); fwrite ($fq6, $strng);
else else
fwrite ($fs, $strng); fwrite ($fq4, $strng);
} }
fclose ($fq); fclose ($fq);
fclose ($fr); fclose ($fq4);
fclose ($fs); fclose ($fq6);
// Commit and push to all git remote repositories // Commit and push to all git remote repositories
echo shell_exec ("./update.sh 2>&1"); echo shell_exec ("./update.sh 2>&1");