mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 09:09:17 +00:00
chore: move constants to mod.rs, format
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user