Projet

Général

Profil

« Précédent | Suivant » 

Révision a0dd23e0

Ajouté par Daniel Becker il y a presque 10 ans

add column for internal port on UPnP status page

Voir les différences:

usr/local/www/status_upnp.php
87 87
          <td width="10%" class="listhdrr"><?=gettext("Port");?></td>
88 88
          <td width="10%" class="listhdrr"><?=gettext("Protocol");?></td>
89 89
          <td width="20%" class="listhdrr"><?=gettext("Internal IP");?></td>
90
          <td width="60%" class="listhdr"><?=gettext("Description");?></td>
90
          <td width="10%" class="listhdrr"><?=gettext("Int. Port");?></td>
91
          <td width="50%" class="listhdr"><?=gettext("Description");?></td>
91 92
		</tr>
92 93
		<?php $i = 0; foreach ($rdr_entries as $rdr_entry) {
93
			if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" rtable [0-9] -> (.*) port (.*)/", $rdr_entry, $matches))
94
			if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) keep state label \"(.*)\" rtable [0-9] -> (.*) port (.*)/", $rdr_entry, $matches))
94 95
			$rdr_proto = $matches[2];
95 96
			$rdr_port = $matches[3];
96
			$rdr_ip = $matches[5];
97 97
			$rdr_label =$matches[4];
98
			$rdr_ip = $matches[5];
99
			$rdr_iport = $matches[6];
98 100
		?>
99 101
        <tr>
100 102
          <td class="listlr">
......
106 108
          <td class="listlr">
107 109
		<?php print $rdr_ip;?>
108 110
          </td>
111
          <td class="listlr">
112
		<?php print $rdr_iport;?>
113
          </td>
109 114
          <td class="listlr">
110 115
		<?php print $rdr_label;?>
111 116
          </td>

Formats disponibles : Unified diff