From c9861c1933963fc2bbb887f8abe1a614e6c7844f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 3 Dec 2025 12:10:21 +0100 Subject: [PATCH] net/upnp: status update via https://github.com/opnsense/plugins/pull/5005#issuecomment-3606197018 --- net/upnp/src/www/status_upnp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/upnp/src/www/status_upnp.php b/net/upnp/src/www/status_upnp.php index bb2997472..394d42170 100644 --- a/net/upnp/src/www/status_upnp.php +++ b/net/upnp/src/www/status_upnp.php @@ -83,12 +83,12 @@ include("head.inc"); !preg_match('/on (?P.+) inet6 proto (?P.+) from (?P[^ ]+) (port = (?P.+) )?to (?P.+) port = (?P\d+) (flags [^ ]+ )?keep state (label "(?P.+)" )?rtable [0-9]/', $rdr_entry, $matches)) { continue; } - if (preg_match('/PCP .*([0-9a-f]{24})$/', $matches['descr'], $descrmatch) === 1) { - $descr = "PCP (nonce {$descrmatch[1]})"; + if (preg_match('/PCP ([A-Z]+) ([0-9a-f]{24})$/', $matches['descr'], $descrmatch) === 1) { + $descr = "PCP ({$descrmatch[1]} nonce {$descrmatch[2]})"; } elseif (preg_match('/^NAT-PMP \d+ \w+$/', $matches['descr'], $descrmatch) === 1) { $descr = 'NAT-PMP'; } elseif (preg_match('/^pinhole-(\d+).*IGD2 pinhole$/', $matches['descr'], $descrmatch) === 1) { - $descr = "UPnP IGD IPv6 (UID {$descrmatch[1]})"; + $descr = "UPnP IGDv2 IPv6 (UID {$descrmatch[1]})"; } elseif (preg_match('/^UPnP IGD/', $matches['descr'], $descrmatch) === 1) { $descr = $matches['descr']; } else {