|
|
|
@ -43,7 +43,7 @@ import de.anomic.plasma.plasmaSwitchboardConstants;
|
|
|
|
|
public class UPnP {
|
|
|
|
|
|
|
|
|
|
public final static Log log = new Log("UPNP");
|
|
|
|
|
private static plasmaSwitchboard sb;
|
|
|
|
|
private static plasmaSwitchboard sb = plasmaSwitchboard.getSwitchboard();
|
|
|
|
|
|
|
|
|
|
private final static int discoveryTimeout = 5000; // seconds to receive a response from devices
|
|
|
|
|
private static InternetGatewayDevice[] IGDs = null;
|
|
|
|
@ -60,10 +60,6 @@ public class UPnP {
|
|
|
|
|
System.setProperty("net.sbbi.upnp.ddos.matchip", "false");
|
|
|
|
|
} */
|
|
|
|
|
|
|
|
|
|
public static void setSb(plasmaSwitchboard switchboard) {
|
|
|
|
|
sb = switchboard;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static boolean setIGDs(InternetGatewayDevice[] igds) {
|
|
|
|
|
if(IGDs == null) {
|
|
|
|
|
IGDs = igds; // set only once to prevent many same devices by advertisement events
|
|
|
|
|