This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ -(BOOL)currentProxySetByMe {
402
402
BOOL autoProxy = [proxy[(NSString *) kCFNetworkProxiesProxyAutoConfigURLString ] isEqualToString: @" http://127.0.0.1:8070/proxy.pac" ];
403
403
BOOL autoProxyEnabled = [proxy[(NSString *) kCFNetworkProxiesProxyAutoConfigEnable ] boolValue ];
404
404
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;
406
406
BOOL socksProxyEnabled = [proxy[(NSString *) kCFNetworkProxiesSOCKSEnable ] boolValue ];
407
407
if ((autoProxyEnabled && autoProxy) || (socksProxyEnabled && socksPort && socksProxy) ) {
408
408
continue ;
Original file line number Diff line number Diff line change 17
17
<key >CFBundlePackageType </key >
18
18
<string >APPL </string >
19
19
<key >CFBundleShortVersionString </key >
20
- <string >0.7.7 </string >
20
+ <string >0.7.8 </string >
21
21
<key >CFBundleSignature </key >
22
22
<string >???? </string >
23
23
<key >CFBundleVersion </key >
Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ - (NSDictionary*)dictionaryForm {
40
40
@" network" : network != nil ? network : @0 };
41
41
}
42
42
43
+
44
+
43
45
- (NSDictionary *)v2rayConfigWithRules : (BOOL )rules
44
46
{
45
47
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults ];
46
- // generate config template
48
+ // generate config template
47
49
NSMutableDictionary *config = [NSMutableDictionary dictionaryWithContentsOfFile: [[NSBundle mainBundle ] pathForResource: rules?@" config-sample-rules" :@" config-sample" ofType: @" plist" ]];
48
50
config[@" inbound" ][@" port" ] = [userDefaults objectForKey: @" localPort" ];
49
51
config[@" inbound" ][@" listen" ] = [[userDefaults objectForKey: @" shareOverLan" ] boolValue ] ? @" 0.0.0.0" : @" 127.0.0.1" ;
You can’t perform that action at this time.
0 commit comments