新增了config.json实现
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user