Project

General

Profile

« Previous | Next » 

Revision b5e64c50

Added by Seth Mos about 17 years ago

Update pattern for rtable support

View differences:

usr/local/www/status_upnp.php
77 77
          <td width="60%" class="listhdr"><?=gettext("Description")?></td>
78 78
		</tr>
79 79
		<?php $i = 0; foreach ($rdr_entries as $rdr_entry) {
80
			if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" -> (.*) port (.*)/", $rdr_entry, $matches))
80
			if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" rtable [0-9] -> (.*) port (.*)/", $rdr_entry, $matches))
81 81
			$rdr_proto = $matches[2];
82 82
			$rdr_port = $matches[3];
83 83
			$rdr_ip = $matches[5];

Also available in: Unified diff