Procházet zdrojové kódy

net/settings: Support quic network profile with defaults

x před 6 měsíci
rodič
revize
ae3cb958ac
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/net/settings.rs

+ 1 - 1
src/net/settings.rs

@@ -522,7 +522,7 @@ impl NetworkProfile {
 
     /// Creates [`NetworkProfile`] from [`NetworkProfileOpt`] based on the profile
     fn from_with_profile(opt: NetworkProfileOpt, profile: &str) -> Self {
-        let def = if profile == "tcp" || profile == "tcp+tls" {
+        let def = if ["tcp", "tcp+tls", "quic"].contains(&profile) {
             NetworkProfile::default()
         } else {
             NetworkProfile::tor_default()