From bbefbadb67bd41a829f64340ea0df0f8fe6c8dde Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Thu, 27 Sep 2018 15:08:05 +0800 Subject: [PATCH] Fixes copy server profile url. Copy url as a string instead of the url type. --- ShadowsocksX-NG/ShareServerProfilesWindowController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShadowsocksX-NG/ShareServerProfilesWindowController.swift b/ShadowsocksX-NG/ShareServerProfilesWindowController.swift index 741ada1..92fde36 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")