chore: move constants to mod.rs, format

This commit is contained in:
Luna Yao
2026-04-06 11:54:01 +02:00
parent 87713e96b7
commit a5fdebe778
4 changed files with 29 additions and 30 deletions
+1 -9
View File
@@ -1,3 +1,4 @@
use crate::dns::config::DNS_SUPPORTED_PROTOCOLS;
use crate::proto;
use crate::proto::utils::RepeatedMessageModel;
use anyhow::{anyhow, Error};
@@ -54,15 +55,6 @@ pub fn parse(name: &str) -> LowerName {
}
}
static DNS_SUPPORTED_PROTOCOLS: [Protocol; 2] = [
Protocol::Udp,
Protocol::Tcp,
// Protocol::Tls,
// Protocol::Https,
// Protocol::Quic,
// Protocol::H3,
];
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, SerializeDisplay, DeserializeFromStr)]
pub struct NameServerAddr {
pub(super) protocol: Protocol,