Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 881029
Collapse All | Expand All

(-)autoupnp-0.4.7.orig/autoupnp (+4 lines)
Lines 15-20 Link Here
15
	to export AutoUPnP LD_PRELOAD to the currently running shell.
15
	to export AutoUPnP LD_PRELOAD to the currently running shell.
16
eval "\$(autoupnp off)"
16
eval "\$(autoupnp off)"
17
	to remove AutoUPnP from LD_PRELOAD in the currently running shell.
17
	to remove AutoUPnP from LD_PRELOAD in the currently running shell.
18
19
If the AUTOUPNP_IF environment var is specified, that named interface will
20
be used for discovering UPnP devices which will subsequently be used for
21
forwarding.
18
_EOF_
22
_EOF_
19
}
23
}
20
24
(-)autoupnp-0.4.7.orig/src/upnp.c (-1 / +1 lines)
Lines 58-64 Link Here
58
#endif
58
#endif
59
	if (!igd_set_up) {
59
	if (!igd_set_up) {
60
#if MINIUPNPC_API_VERSION >= 14
60
#if MINIUPNPC_API_VERSION >= 14
61
		struct UPNPDev* devlist = upnpDiscover(discovery_delay, NULL, NULL, 0, 0, 2, NULL);
61
		struct UPNPDev* devlist = upnpDiscover(discovery_delay, getenv("AUTOUPNP_IF"), NULL, 0, 0, 2, NULL);
62
#elif MINIUPNPC_API_VERSION >= 8
62
#elif MINIUPNPC_API_VERSION >= 8
63
		struct UPNPDev* devlist = upnpDiscover(discovery_delay, NULL, NULL, 0, 0, NULL);
63
		struct UPNPDev* devlist = upnpDiscover(discovery_delay, NULL, NULL, 0, 0, NULL);
64
#else
64
#else

Return to bug 881029