增加feature判断
This commit is contained in:
@@ -95,6 +95,7 @@ impl Config {
|
|||||||
local_ipv4: Option<Ipv4Addr>,
|
local_ipv4: Option<Ipv4Addr>,
|
||||||
) -> anyhow::Result<Self> {
|
) -> anyhow::Result<Self> {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
#[cfg(feature = "integrated_tun")]
|
||||||
if !tap {
|
if !tap {
|
||||||
if let Err(e) = tun::Device::check_tun_dll() {
|
if let Err(e) = tun::Device::check_tun_dll() {
|
||||||
log::warn!("校验平台dll {:?}", e);
|
log::warn!("校验平台dll {:?}", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user