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

Commit 39f7a9d

Browse files
committed
1 parent dd21879 commit 39f7a9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

V2RayX/ConfigWindowController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ - (IBAction)showTransportSettings:(id)sender {
145145
NSString *savedWsPath = transportSettings[@"wsSettings"][@"path"];
146146
[_wsPathField setStringValue: savedWsPath != nil ? savedWsPath : @""];
147147
//tls
148-
[_tlsUseButton setState:[[[NSUserDefaults standardUserDefaults] objectForKey:@"useTLS"] boolValue]];
149-
NSDictionary* tlsSettings = [[NSUserDefaults standardUserDefaults] objectForKey:@"tlsSettings"];
148+
[_tlsUseButton setState:[[transportSettings objectForKey:@"security"] boolValue]];
149+
NSDictionary* tlsSettings = [transportSettings objectForKey:@"tlsSettings"];
150150
[_tlsAiButton setState:[tlsSettings[@"allowInsecure"] boolValue]];
151151
if (tlsSettings[@"serverName"]) {
152152
[_tlsSnField setStringValue:tlsSettings[@"serverName"]];

V2RayX/ServerProfile.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ + (ServerProfile*)readFromAnOutboundDic:(NSDictionary*)outDict {
8686
if (outDict[@"proxySettings"][@"outbound-proxy-config"][@"settings"][@"servers"][0] != nil) {
8787
profile.proxySettings = outDict[@"proxySettings"][@"outbound-proxy-config"][@"settings"][@"servers"][0];
8888
}
89-
if (outDict[@"setMuxSettings"] != nil) {
90-
profile.muxSettings = outDict[@"setMuxSettings"];
89+
if (outDict[@"mux"] != nil) {
90+
profile.muxSettings = outDict[@"mux"];
9191
}
9292
return profile;
9393
}

0 commit comments

Comments
 (0)