mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-18 02:11:05 +00:00
fix discover method
This commit is contained in:
parent
3917487cb4
commit
2f974e7e6e
@ -27,7 +27,7 @@ public class JavaBridgeTest {
|
||||
return;
|
||||
}
|
||||
|
||||
devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, null);
|
||||
devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, 0, IntBuffer.allocate(1));
|
||||
if (devlist != null) {
|
||||
System.out.println("List of UPNP devices found on the network :");
|
||||
for (UPNPDev device = devlist; device != null; device = device.pNext) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user