mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 10:14:35 +00:00
fix incorrect config check (#1086)
This commit is contained in:
@@ -147,6 +147,12 @@ pub async fn create_connector_by_url(
|
||||
Box::new(connector)
|
||||
}
|
||||
"txt" | "srv" => {
|
||||
if url.host_str().is_none() {
|
||||
return Err(Error::InvalidUrl(format!(
|
||||
"host should not be empty in txt or srv url: {}",
|
||||
url
|
||||
)));
|
||||
}
|
||||
let connector = dns_connector::DNSTunnelConnector::new(url, global_ctx.clone());
|
||||
Box::new(connector)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user