mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-15 18:35:47 +00:00
set hostname when connecting to config-server (#712)
This commit is contained in:
@@ -11,8 +11,9 @@ pub struct WebClient {
|
||||
}
|
||||
|
||||
impl WebClient {
|
||||
pub fn new<T: TunnelConnector + 'static, S: ToString>(connector: T, token: S) -> Self {
|
||||
let controller = Arc::new(controller::Controller::new(token.to_string()));
|
||||
pub fn new<T: TunnelConnector + 'static, S: ToString, H: ToString>(connector: T, token: S, hostname: H) -> Self {
|
||||
let controller = Arc::new(controller::Controller::new(token.to_string(),
|
||||
hostname.to_string()));
|
||||
|
||||
let controller_clone = controller.clone();
|
||||
let tasks = ScopedTask::from(tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user