re-import Server
as Socks5Server
This commit is contained in:
parent
443252c2ca
commit
a9ca312726
@ -1,7 +1,7 @@
|
|||||||
use self::{
|
use self::{
|
||||||
config::{Config, ConfigError},
|
config::{Config, ConfigError},
|
||||||
connection::Endpoint,
|
connection::Endpoint,
|
||||||
socks5::Server,
|
socks5::Server as Socks5Server,
|
||||||
};
|
};
|
||||||
use quinn::{ConnectError, ConnectionError};
|
use quinn::{ConnectError, ConnectionError};
|
||||||
use std::{env, io::Error as IoError, process};
|
use std::{env, io::Error as IoError, process};
|
||||||
@ -36,7 +36,7 @@ async fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
match Server::set_config(cfg.local) {
|
match Socks5Server::set_config(cfg.local) {
|
||||||
Ok(()) => {}
|
Ok(()) => {}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
eprintln!("{err}");
|
eprintln!("{err}");
|
||||||
@ -44,7 +44,7 @@ async fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Server::start().await;
|
Socks5Server::start().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user