This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments