|
@@ -31,7 +31,7 @@ struct AdminRegistration { |
|
|
#[derive(Debug, Deserialize, Serialize, Clone)] |
|
|
#[derive(Debug, Deserialize, Serialize, Clone)] |
|
|
struct BubbleRegistration { |
|
|
struct BubbleRegistration { |
|
|
ip: String, |
|
|
ip: String, |
|
|
port: u16, |
|
|
|
|
|
|
|
|
proxy_port: u16, |
|
|
auth_token: String |
|
|
auth_token: String |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -86,7 +86,7 @@ async fn handle_register(registration : AdminRegistration, |
|
|
// create the registration object |
|
|
// create the registration object |
|
|
let bubble_registration = BubbleRegistration { |
|
|
let bubble_registration = BubbleRegistration { |
|
|
ip: proxy_ip, |
|
|
ip: proxy_ip, |
|
|
port: proxy_port, |
|
|
|
|
|
|
|
|
proxy_port, |
|
|
auth_token: token |
|
|
auth_token: token |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|