diff --git a/ShadowsocksX-NG/ShareServerProfilesWindowController.swift b/ShadowsocksX-NG/ShareServerProfilesWindowController.swift index 741ada1c..92fde363 100644 --- a/ShadowsocksX-NG/ShareServerProfilesWindowController.swift +++ b/ShadowsocksX-NG/ShareServerProfilesWindowController.swift @@ -48,7 +48,7 @@ class ShareServerProfilesWindowController: NSWindowController if profile.isValid(), let url = profile.URL() { let pb = NSPasteboard.general pb.clearContents() - if pb.writeObjects([url as NSPasteboardWriting]) { + if pb.writeObjects([url.absoluteString as NSPasteboardWriting]) { NSLog("Copy URL to clipboard") } else { NSLog("Failed to copy URL to clipboard")