mirror of https://github.com/ospab/ostp.git
fix(client): fix missing fd destructuring in tun inbound
This commit is contained in:
parent
a965adb0b1
commit
d1d6a55e75
|
|
@ -21,7 +21,7 @@ pub async fn run_tun_inbound(
|
||||||
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||||
use futures::{StreamExt, SinkExt};
|
use futures::{StreamExt, SinkExt};
|
||||||
|
|
||||||
let InboundConfig::Tun { tag, auto_route, mtu, .. } = inbound_config else {
|
let InboundConfig::Tun { tag, auto_route, mtu, fd, .. } = inbound_config else {
|
||||||
return Err(anyhow!("Invalid config for TUN inbound"));
|
return Err(anyhow!("Invalid config for TUN inbound"));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue