Configurable http api port

This commit is contained in:
Jędrzej Stuczyński
2021-06-23 15:49:38 +01:00
parent 4c8f8ff1b6
commit 035a2554ee
+2
View File
@@ -61,8 +61,10 @@ impl MixNode {
info!("Starting HTTP API on http://localhost:8000");
let mut config = rocket::config::Config::release_default();
// bind to the same address as we are using for mixnodes
config.address = self.config.get_listening_address();
config.port = self.config.get_http_api_port();
let verloc_state = VerlocState::new(atomic_verloc_result);
let descriptor = self.descriptor.clone();