新增了config.json实现

This commit is contained in:
Zihaoxu2008
2025-01-25 11:42:52 +08:00
parent 6072589a7b
commit ca1158b218
7 changed files with 104 additions and 31 deletions

View File

@@ -16,7 +16,7 @@ pub struct Socks5Bot {
impl Socks5Bot {
pub fn new(username: String, proxy_addr: String, server_addr: String) -> Result<Socks5Bot, Error> {
println!("[{}] Creating bot with proxy {}", username, proxy_addr);
println!("[{}] Creating bot on {} with proxy {}", username, server_addr, proxy_addr);
let stream = Socks5Stream::connect(proxy_addr.as_str(), server_addr.as_str());
let should_restart = false;
match stream {