Skip to content

Commit 6626b1e

Browse files
committed
IP discovery, fix services discover bug
1 parent d0d9f70 commit 6626b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Protest/Tools/IpDiscovery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ private static async Task DiscoverHostnameAsync(ConcurrentDictionary<string, Hos
445445
private static async Task DiscoverServicesAsync(ConcurrentDictionary<string, HostEntry> dic, NetworkInterface nic, WebSocket ws, Lock mutex, CancellationToken token) {
446446
short[] ports = { 22, 23, 53, 80, 443, 445, 3389, 9100 };
447447
Task[] tasks = dic
448-
.Where(o=>o.Value.services is not null && o.Value.services.Length > 0)
448+
.Where(o => o.Value.services is null || o.Value.services.Length == 0)
449449
.Select(async pair => {
450450
if (token.IsCancellationRequested) {
451451
return;

0 commit comments

Comments
 (0)