Update pattern for rtable support

This commit is contained in:
Seth Mos 2008-07-16 19:49:07 +00:00
parent 01ac16abc2
commit 91979c27d9

View File

@ -83,7 +83,7 @@ if(!$config['installedpackages']['miniupnpd']['config'][0]['iface_array'] ||
<td width="60%" class="listhdr"><?=gettext("Description")?></td>
</tr>
<?php $i = 0; foreach ($rdr_entries as $rdr_entry) {
if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" -> (.*) port (.*)/", $rdr_entry, $matches))
if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" rtable [0-9] -> (.*) port (.*)/", $rdr_entry, $matches))
$rdr_proto = $matches[2];
$rdr_port = $matches[3];
$rdr_ip = $matches[5];