From 1eb41137e5e291bc1da7bfbff8b4c4e51c3581d1 Mon Sep 17 00:00:00 2001
From: Recolic Keghart <root@recolic.net>
Date: Thu, 16 Jan 2020 15:15:15 +0800
Subject: [PATCH] Adjust icmp test stragtegy

---
 do.bash | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/do.bash b/do.bash
index a10eafa..5f15d46 100755
--- a/do.bash
+++ b/do.bash
@@ -43,6 +43,7 @@ function do_test () {
             test_tcp proxy.recolic.net 22 | grep -a SSH || return $?
             ;;
         drive )
+            # NO icmp required because of udp2raw
             curl -s https://drive.recolic.net/index.php/login | grep 'drive.recolic.' || return $?
             ;;
         v-tw )
@@ -72,7 +73,9 @@ function do_test () {
             # There's also something running at another port to obfuse the obfused traffic again
             #     to fight against GFT deep-learning VPN detection.
             # So I can do nothing.....
-            test_icmp base.tw1.recolic.net || return $?
+
+            # NO icmp required because of udp2raw
+            # test_icmp base.tw1.recolic.net || return $?
             ;;
         www )
             test_icmp recolic.net &&
@@ -112,7 +115,7 @@ function do_test () {
             curl -s 'https://tm.recolic.net/addtask?openid=23251fc131e118d07fc9932f3c3de92c&N=30.508914&E=114.40718&key=FUCKYOU' | grep 'invalid key' || return $?
             ;;
         git )
-            test_icmp git.recolic.net &&
+            # NO icmp required because of udp2raw
             curl -s https://git.recolic.net/ | grep 'users/sign_in' &&
             curl -s http://git.recolic.net/ -L | grep 'users/sign_in' || return $?
             ;;
-- 
GitLab