android direct ip access

This commit is contained in:
csf
2022-09-29 13:07:20 +08:00
parent 0abda2edef
commit 9911f4d2f5
7 changed files with 153 additions and 38 deletions

View File

@@ -317,6 +317,7 @@ async fn test_nat_type_() -> ResultType<bool> {
break;
}
}
Config::set_option("local-ip-addr".to_owned(), addr.ip().to_string());
let ok = port1 > 0 && port2 > 0;
if ok {
let t = if port1 == port2 {