From 6c85f90708446322685f62906ffa59720bbe4e95 Mon Sep 17 00:00:00 2001 From: uidq4502 Date: Wed, 20 Jul 2022 15:13:12 +0800 Subject: [PATCH] fix the issue of A problem about AppDelegate/getV2rayPath method --- V2RayX/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V2RayX/AppDelegate.m b/V2RayX/AppDelegate.m index 9716dd1..b316d34 100644 --- a/V2RayX/AppDelegate.m +++ b/V2RayX/AppDelegate.m @@ -1001,7 +1001,7 @@ -(NSString*)getV2rayPath { NSString* defaultV2ray = [NSString stringWithFormat:@"%@/xray", [[NSBundle mainBundle] resourcePath]]; NSFileManager* fileManager = [NSFileManager defaultManager]; NSString* cusV2ray = [NSString stringWithFormat:@"%@/Library/Application Support/V2RayXS/xray-core/xray",NSHomeDirectory()]; - for (NSString* binary in @[@"v2ray", @"v2ctl"]) { + for (NSString* binary in @[@"xray"]) { NSString* fullpath = [NSString stringWithFormat:@"%@/Library/Application Support/V2RayXS/xray-core/%@",NSHomeDirectory(), binary]; BOOL isDir = YES; if (![fileManager fileExistsAtPath:fullpath isDirectory:&isDir] || isDir || ![fileManager setAttributes:@{NSFilePosixPermissions: [NSNumber numberWithShort:0777]} ofItemAtPath:fullpath error:nil]) {