瀏覽代碼

net/settings: Support quic network profile with defaults

x 7 月之前
父節點
當前提交
ae3cb958ac
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()