Automatic outbound NAT rules skip openvpn interfaces, lets skip them when creating the first set of manual rules too. It fixes #3528

This commit is contained in:
Renato Botelho 2014-03-18 15:09:45 -03:00
parent 22889e9ee7
commit e538fc1844

View File

@ -94,6 +94,8 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") {
$ifdescrs = get_configured_interface_with_descr();
foreach($ifdescrs as $if => $ifdesc) {
if (substr(get_real_interface($if), 0, 4) == "ovpn")
continue;
if (!interface_has_gateway($if))
continue;
foreach ($ifdescrs as $if2 => $ifdesc2) {