Révision 8718669c
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/pkg/miniupnpd.inc | ||
---|---|---|
159 | 159 |
$bits = find_interface_subnet($if); |
160 | 160 |
/* check that the interface has an ip address before adding parameters */ |
161 | 161 |
if (is_ipaddr($addr)) { |
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 |
$config_text .= "listening_ip={$if}\n"; |
|
166 | 163 |
if(!$ifaces_active) { |
167 | 164 |
$webgui_ip = $addr; |
168 | 165 |
$ifaces_active = $iface; |
Formats disponibles : Unified diff
Recent versions of miniupnpd does not accept IPv4 address anymore, use interface name always. It fixes #3874