mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-20 21:36:00 +00:00
Fix: iPad Name too long for QuickShare
This commit is contained in:
1 parent
cecffa1aaa
commit
1eebce1caa
2 files changed
+21
-2
No files matched your search
@@ -48,7 +48,7 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb
|
||||
#if os(macOS)
|
||||
self.deviceInfo = EndpointInfo(name: Host.current().localizedName ?? "Mac", deviceType: .computer)
|
||||
#else
|
||||
self.deviceInfo = EndpointInfo(name: UIDevice.current.marketingName, deviceType: .phone)
|
||||
self.deviceInfo = EndpointInfo(name: UIDevice.current.marketingName.withoutBracketedContent, deviceType: .phone)
|
||||
#endif
|
||||
|
||||
tcpListener = try! NWListener(using: NWParameters(tls: .none))
|
||||
|
||||
Reference in new issue
Block a user