Skip to content

Commit

Permalink
fix: compliation error about feature gates
Browse files Browse the repository at this point in the history
  • Loading branch information
XOR-op committed Oct 2, 2024
1 parent 4d8070f commit 1004793
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions boltconn/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ pub(crate) async fn controller_main(args: ProgramArgs) -> ! {
DnsOptions::Lookup { domain_name } => requester.real_lookup(domain_name).await,
DnsOptions::Mapping { fake_ip } => requester.fake_ip_to_real(fake_ip).await,
},
#[cfg(feature = "internal-test")]
SubCommand::MasterConn(opt) => match opt {
MasterConnOptions::Wg => requester.master_conn_stats().await,
},
Expand Down
2 changes: 1 addition & 1 deletion boltconn/src/proxy/tun_udp_inbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl TunUdpInbound {
// hijack dns
if let Ok(answer) = self.dns.respond_to_query(payload.as_ref()) {
let raw_data = create_raw_udp_pkt(answer.as_ref(), dst, src);
if let Err(e) = self.tun_tx.send_async(raw_data.freeze()).await {
if self.tun_tx.send_async(raw_data.freeze()).await.is_err() {
tracing::error!("TUN back tx closed");
}
}
Expand Down

0 comments on commit 1004793

Please sign in to comment.