Disable local_ip_address crate as of now it doesn't support cross-compilation

This commit is contained in:
Nobody 2022-02-09 20:22:10 +05:00
parent b83363fd6d
commit 68d8adfe36
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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<u8>, Vec<u8>) {