支持指定dns

This commit is contained in:
lbl8603
2024-04-23 08:21:01 +08:00
parent 12d4fc8e98
commit 5b40a9f147
10 changed files with 118 additions and 137 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ pub struct BaseConfigInfo {
pub server_secret: bool,
pub device_id: String,
pub server_addr: String,
pub name_servers:Vec<SocketAddr>,
pub name_servers: Vec<String>,
}
impl BaseConfigInfo {
@@ -74,7 +74,7 @@ impl BaseConfigInfo {
server_secret: bool,
device_id: String,
server_addr: String,
name_servers:Vec<SocketAddr>,
name_servers: Vec<String>,
) -> Self {
Self {
name,