diff --git a/SharpPcap/LibPcap/LibPcapLiveDevice.cs b/SharpPcap/LibPcap/LibPcapLiveDevice.cs index d0b4ad64..edffc1a4 100644 --- a/SharpPcap/LibPcap/LibPcapLiveDevice.cs +++ b/SharpPcap/LibPcap/LibPcapLiveDevice.cs @@ -109,8 +109,11 @@ public override void Open(DeviceConfiguration configuration) immediateMode = true; } + var remote_pcap = pcapInterface.Name.StartsWith("rpcap://") + || pcapInterface.Name.StartsWith("rpcaps://") + || credentials != null; // Some configurations can only be used with pcap_create - var use_pcap_create = credentials == null && (short)otherModes == 0; + var use_pcap_create = !remote_pcap && (short)otherModes == 0; if (use_pcap_create) { Handle = LibPcapSafeNativeMethods.pcap_create(