This commit is contained in:
Rohan Sircar 2021-05-02 17:06:42 +05:30
parent af0a3ce0c5
commit da01fee1f8
2 changed files with 2 additions and 4 deletions

View File

@ -1,2 +0,0 @@
[target.aarch64-unknown-linux-gnu]
linker = 'aarch64-linux-gnu-gcc'

View File

@ -104,8 +104,8 @@ async fn main() -> std::io::Result<()> {
// user_service: &user_service, // user_service: &user_service,
// }; // };
let addr = let addr = std::env::var("BIND_ADDRESS")
std::env::var("BIND_ADDRESS").unwrap_or("127.0.0.1:7800".to_owned()); .unwrap_or_else(|_| "127.0.0.1:7800".to_owned());
info!("Starting server at {}", addr); info!("Starting server at {}", addr);
let private_key = rand::thread_rng().gen::<[u8; 32]>(); let private_key = rand::thread_rng().gen::<[u8; 32]>();
let app = move || { let app = move || {