mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-08-31 08:19:14 +00:00
fix tun feature gate
fmt
This commit is contained in:
@@ -3,7 +3,6 @@ use crate::dns::node_mgr::DnsNodeMgr;
|
||||
use crate::dns::system;
|
||||
use crate::dns::utils::addr::NameServerAddr;
|
||||
use crate::dns::utils::response::ResponseHandle;
|
||||
use crate::instance::instance::{ArcNicCtx, NicCtx};
|
||||
use crate::peer_center::instance::PeerCenterPeerManagerTrait;
|
||||
use crate::peers::peer_manager::PeerManager;
|
||||
use crate::peers::NicPacketFilter;
|
||||
@@ -34,6 +33,9 @@ use std::{sync::Arc, time::Duration};
|
||||
use tokio_util::sync::CancellationToken;
|
||||
use tracing::{instrument, Instrument};
|
||||
|
||||
#[cfg(feature = "tun")]
|
||||
use crate::instance::instance::{ArcNicCtx, NicCtx};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct DynamicCatalog {
|
||||
inner: Arc<tokio::sync::RwLock<Catalog>>,
|
||||
@@ -94,6 +96,7 @@ impl DnsServer {
|
||||
) -> Self {
|
||||
Self {
|
||||
mgr: Arc::new(DnsNodeMgr::new()),
|
||||
#[cfg(feature = "tun")]
|
||||
nic_ctx,
|
||||
peer_mgr,
|
||||
global_ctx,
|
||||
|
||||
Reference in New Issue
Block a user