Révision 81acbdd7
Ajouté par Daniel Becker il y a presque 10 ans
usr/local/pkg/miniupnpd.inc | ||
---|---|---|
156 | 156 |
/* above function returns iface if fail */ |
157 | 157 |
if($if!=$iface) { |
158 | 158 |
$addr = find_interface_ip($if); |
159 |
$bits = find_interface_subnet($if); |
|
159 | 160 |
/* check that the interface has an ip address before adding parameters */ |
160 | 161 |
if (is_ipaddr($addr)) { |
161 |
$config_text .= "listening_ip={$if}\n"; |
|
162 |
if ($upnp_config['listen_on_iface']) |
|
163 |
$config_text .= "listening_ip={$if}\n"; |
|
164 |
else |
|
165 |
$config_text .= "listening_ip={$addr}/{$bits}\n"; |
|
162 | 166 |
if(!$ifaces_active) { |
163 | 167 |
$webgui_ip = $addr; |
164 | 168 |
$ifaces_active = $iface; |
Formats disponibles : Unified diff
make listening on interface rather than IP optional for miniupnp