mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 22:05:59 +00:00
Ignore the localhost MDNS service
This commit is contained in:
1 parent
0deec1a64b
commit
8b05c3abc5
2 files changed
+16
-8
No files matched your search
@@ -299,6 +299,14 @@ public class NearbyConnectionManager : NSObject, NetServiceDelegate, InboundNear
|
||||
#if DEBUG
|
||||
print("found service \(service)")
|
||||
#endif
|
||||
for interface in service.interfaces{
|
||||
if case .loopback=interface.type{
|
||||
#if DEBUG
|
||||
print("ignoring localhost service")
|
||||
#endif
|
||||
return
|
||||
}
|
||||
}
|
||||
guard let endpointID=endpointID(for: service) else {return}
|
||||
#if DEBUG
|
||||
print("service name is valid, endpoint ID \(endpointID)")
|
||||
|
||||
Reference in new issue
Block a user