From 68d8adfe36be566cd1df21bd0d838137b3f6959b Mon Sep 17 00:00:00 2001 From: Nobody Date: Wed, 9 Feb 2022 20:22:10 +0500 Subject: [PATCH] Disable local_ip_address crate as of now it doesn't support cross-compilation --- Cargo.toml | 2 +- src/server/dispatch_server.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3e38971..bc1f39a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ num-derive = "0.3" pretty-hex = "0.2" sea-orm = { version = "0.3", features = [ "sqlx-all", "runtime-async-std-native-tls" ] } hostname = "0.3" -local-ip-address = "0.4" +#local-ip-address = "0.4" chrono = "0.4" rand = "0.8" diff --git a/src/server/dispatch_server.rs b/src/server/dispatch_server.rs index f1f8c60..67e7a1b 100644 --- a/src/server/dispatch_server.rs +++ b/src/server/dispatch_server.rs @@ -630,8 +630,8 @@ impl DispatchServer { } fn get_local_ip() -> String { - return local_ip_address::local_ip().unwrap().to_string(); - //return "127.0.0.1".to_string(); + //return local_ip_address::local_ip().unwrap().to_string(); + return "127.0.0.1".to_string(); } fn load_keys(name: &str) -> (Vec, Vec) {