Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit db46dcf

Browse files
committed
#18 fixed
1 parent aea8109 commit db46dcf

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

V2RayX/AppDelegate.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ -(BOOL)currentProxySetByMe {
402402
BOOL autoProxy = [proxy[(NSString*) kCFNetworkProxiesProxyAutoConfigURLString] isEqualToString:@"http://127.0.0.1:8070/proxy.pac"];
403403
BOOL autoProxyEnabled = [proxy[(NSString*) kCFNetworkProxiesProxyAutoConfigEnable] boolValue];
404404
BOOL socksProxy = [proxy[(NSString*) kCFNetworkProxiesSOCKSProxy] isEqualToString:@"127.0.0.1"];
405-
BOOL socksPort = [proxy[(NSString*) kCFNetworkProxiesSOCKSProxy] integerValue] == localPort;
405+
BOOL socksPort = [proxy[(NSString*) kCFNetworkProxiesSOCKSPort] integerValue] == localPort;
406406
BOOL socksProxyEnabled = [proxy[(NSString*) kCFNetworkProxiesSOCKSEnable] boolValue];
407407
if ((autoProxyEnabled && autoProxy) || (socksProxyEnabled && socksPort && socksProxy) ) {
408408
continue;

V2RayX/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.7.7</string>
20+
<string>0.7.8</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

V2RayX/ServerProfile.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ - (NSDictionary*)dictionaryForm {
4040
@"network": network != nil ? network : @0};
4141
}
4242

43+
44+
4345
- (NSDictionary*)v2rayConfigWithRules:(BOOL)rules
4446
{
4547
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
46-
//generate config template
48+
// generate config template
4749
NSMutableDictionary *config = [NSMutableDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:rules?@"config-sample-rules":@"config-sample" ofType:@"plist"]];
4850
config[@"inbound"][@"port"] = [userDefaults objectForKey:@"localPort"];
4951
config[@"inbound"][@"listen"] = [[userDefaults objectForKey:@"shareOverLan"] boolValue] ? @"0.0.0.0" : @"127.0.0.1";

0 commit comments

Comments
 (0)