connection_managers renamed to connection_manager

This commit is contained in:
ssrlive 2023-08-11 15:33:04 +08:00
parent d00a18c865
commit 46ca342aba
4 changed files with 20 additions and 56 deletions

View file

@ -130,7 +130,7 @@ pub fn tun_to_proxy<'a>(
ProxyType::Socks5 => Rc::new(SocksProxyManager::new(server, Version::V5, credentials)) as Rc<dyn ConnectionManager>,
ProxyType::Http => Rc::new(HttpManager::new(server, credentials)) as Rc<dyn ConnectionManager>,
};
ttp.add_connection_manager(mgr);
ttp.set_connection_manager(Some(mgr));
Ok(ttp)
}