Explorar el Código

net/settings: Support quic network profile with defaults

x hace 6 meses
padre
commit
ae3cb958ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()