mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-16 16:16:00 +00:00
add missing AcceptOpts on Windows TCP redir
This commit is contained in:
@@ -4,6 +4,7 @@ use std::{
|
||||
};
|
||||
|
||||
use async_trait::async_trait;
|
||||
use shadowsocks::net::AcceptOpts;
|
||||
use tokio::net::{TcpListener, TcpStream};
|
||||
|
||||
use crate::{
|
||||
@@ -13,7 +14,7 @@ use crate::{
|
||||
|
||||
#[async_trait]
|
||||
impl TcpListenerRedirExt for TcpListener {
|
||||
async fn bind_redir(_ty: RedirType, _addr: SocketAddr) -> io::Result<TcpListener> {
|
||||
async fn bind_redir(_ty: RedirType, _addr: SocketAddr, _accept_opts: AcceptOpts) -> io::Result<TcpListener> {
|
||||
let err = Error::new(
|
||||
ErrorKind::InvalidInput,
|
||||
"not supported tcp transparent proxy on Windows",
|
||||
|
||||
Reference in New Issue
Block a user