From a9ca312726d7e94d7545cea09190b93f24c2d88a Mon Sep 17 00:00:00 2001 From: EAimTY Date: Fri, 3 Feb 2023 17:59:50 +0900 Subject: [PATCH] re-import `Server` as `Socks5Server` --- tuic-client/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tuic-client/src/main.rs b/tuic-client/src/main.rs index b1ef3a9..81b7cb6 100644 --- a/tuic-client/src/main.rs +++ b/tuic-client/src/main.rs @@ -1,7 +1,7 @@ use self::{ config::{Config, ConfigError}, connection::Endpoint, - socks5::Server, + socks5::Server as Socks5Server, }; use quinn::{ConnectError, ConnectionError}; 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(()) => {} Err(err) => { eprintln!("{err}"); @@ -44,7 +44,7 @@ async fn main() { } } - Server::start().await; + Socks5Server::start().await; } #[derive(Debug, Error)]