diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index b0f3ed4..a964862 100644 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -717,7 +717,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele NotificationCenter.default.post( name: Notification.Name(rawValue: "NOTIFY_FOUND_SS_URL"), object: nil , userInfo: [ - "ruls": [url], + "urls": [url], "source": "url", ]) } diff --git a/ShadowsocksX-NG/Utils.m b/ShadowsocksX-NG/Utils.m index bb9f452..2dd2bc9 100644 --- a/ShadowsocksX-NG/Utils.m +++ b/ShadowsocksX-NG/Utils.m @@ -156,7 +156,6 @@ NSDictionary* ParseSSURL(NSURL* url) { urlString = [urlString stringByReplacingOccurrencesOfString:@"ssr://" withString:@"" options:NSAnchoredSearch range:NSMakeRange(0, urlString.length)]; // NSData *data = [[NSData alloc] initWithBase64EncodedString:urlString options:0]; NSString *decodedString = decode64(urlString);//[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; - urlString = decodedString; if ([decodedString isEqual: @""]) { [[NSNotificationCenter defaultCenter] postNotificationName:@"NOTIFY_INVALIDE_QR" diff --git a/ShadowsocksX-NG/ss-local b/ShadowsocksX-NG/ss-local index f45888f..23a2834 100755 Binary files a/ShadowsocksX-NG/ss-local and b/ShadowsocksX-NG/ss-local differ