From 458b5a213e6673ce16e56b31ca9430a029dfed06 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 20 Aug 2006 21:57:09 +0000 Subject: Bring status page up to speed with binary output for rdr's --- packages/miniupnpd/status_upnp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/miniupnpd') diff --git a/packages/miniupnpd/status_upnp.php b/packages/miniupnpd/status_upnp.php index b4a0606e..3eb4486d 100644 --- a/packages/miniupnpd/status_upnp.php +++ b/packages/miniupnpd/status_upnp.php @@ -60,11 +60,11 @@ include("head.inc"); (.*) port (.*)/", $rdr_entry, $matches)) + if (preg_match("/rdr on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" -> (.*) port (.*)/", $rdr_entry, $matches)) $rdr_proto = $matches[2]; $rdr_port = $matches[3]; - $rdr_ip = $matches[4]; - $rdr_label =$matches[5]; + $rdr_ip = $matches[5]; + $rdr_label =$matches[4]; ?> -- cgit v1.2.3