Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Nov 7, 2024
1 parent 7a4d8d0 commit 9d7f299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clash_lib/src/proxy/utils/test_utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub async fn ping_pong_test(

let sess = Session {
destination: (
if cfg!(target_os = "linux") {
if cfg!(any(target_os = "linux", target_os = "android")) {
"127.0.0.1".to_owned()
} else {
"host.docker.internal".to_owned()
Expand Down Expand Up @@ -152,7 +152,7 @@ pub async fn ping_pong_udp_test(
.try_into()
.unwrap_or_else(|_| panic!(""));
let dst: SocksAddr = (
if cfg!(target_os = "linux") {
if cfg!(any(target_os = "linux", target_os = "android")) {
"127.0.0.1".to_owned()
} else {
"host.docker.internal".to_owned()
Expand Down

0 comments on commit 9d7f299

Please sign in to comment.