Skip to content

Commit

Permalink
fix: handle fingerprint field scope problems and adjust the configura…
Browse files Browse the repository at this point in the history
…tion window ui layout #55 #56
  • Loading branch information
tzmax committed Aug 1, 2023
1 parent 6bb7d46 commit 279c0aa
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 302 deletions.
2 changes: 1 addition & 1 deletion V2RayX/ConfigImporter.m
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,6 @@ + (ServerProfile*)importFromVLESSOfXray:(NSString*)vlessStr {
if ([sharedServer[@"security"] isEqualToString:@"reality"]) {
newProfile.flow = searchInArray(nilCoalescing(sharedServer[@"flow"], @""), VLESS_FLOW_LIST);
settingsName = @"realitySettings";
streamSettings[settingsName][@"fingerprint"] = nilCoalescing(sharedServer[@"fp"], @"chrome");
streamSettings[settingsName][@"shortId"] = nilCoalescing(sharedServer[@"sid"], @"");
streamSettings[settingsName][@"spiderX"] = [nilCoalescing(sharedServer[@"spx"], @"") stringByRemovingPercentEncoding];
if ([sharedServer objectForKey:@"pbk"]) {
Expand All @@ -592,6 +591,7 @@ + (ServerProfile*)importFromVLESSOfXray:(NSString*)vlessStr {
streamSettings[settingsName][@"allowInsecure"] = nilCoalescing(sharedServer[@"allowInsecure"], @NO);
streamSettings[settingsName][@"allowInsecureCiphers"] = nilCoalescing(sharedServer[@"allowInsecureCiphers"], @NO);
streamSettings[settingsName][@"serverName"] = nilCoalescing(sharedServer[@"sni"], newProfile.address);
streamSettings[settingsName][@"fingerprint"] = nilCoalescing(sharedServer[@"fp"], @"chrome");
if ([sharedServer objectForKey:@"alpn"]) {
streamSettings[settingsName][@"alpn"] = [sharedServer[@"alpn"] stringByRemovingPercentEncoding];
}
Expand Down
Loading

0 comments on commit 279c0aa

Please sign in to comment.