diff --git a/datafile_gen_daemon_conf.py b/datafile_gen_daemon_conf.py index 84fef896fd0303d2d08464336611ce3cba058309..11042cacbee92587b55c3aa99fb7a5e745051c7b 100644 --- a/datafile_gen_daemon_conf.py +++ b/datafile_gen_daemon_conf.py @@ -21,7 +21,7 @@ tests = [ ('./do.bash rocket', 'Recolic Rocket Chat'), ('./do.bash dl', 'Download Site'), ('./do.bash shortlink', 'Short Link'), - ('./do.bash org-dns', 'recolic.org DNS'), + ('./do.bash cc-dns', 'recolic.cc DNS'), ('./do.bash home-http', 'Home HTTP, NFS, NAS, BaiduDownloader, etc'), ] diff --git a/do.bash b/do.bash index 5f15d465648d87d0bc7ef3ac47d297b81744fc5d..6b69a80c271a88f661e93f0898f2fc6457121ead 100755 --- a/do.bash +++ b/do.bash @@ -1,6 +1,6 @@ #!/bin/bash -[[ $1 == '' ]] && echo -e 'Usage: '"$0 <operation> ...\n operation := rproxy | drive | v-tw | v-hk | frp-hk | ss-us1 | ss-us5 | ss-us6 | ovpn-tw | www | mail | tm | git | zhixiang | mc | push-httpdb-agent | ddns-wuhan | rocket | dl | shortlink | org-dns | home-http | all" && exit 1 +[[ $1 == '' ]] && echo -e 'Usage: '"$0 <operation> ...\n operation := rproxy | drive | v-tw | v-hk | frp-hk | ss-us1 | ss-us5 | ss-us6 | ovpn-tw | www | mail | tm | git | zhixiang | mc | push-httpdb-agent | ddns-wuhan | rocket | dl | shortlink | cc-dns | home-http | all" && exit 1 [[ $(id -u) = 0 ]] && ping_fld="-f" @@ -146,8 +146,8 @@ function do_test () { #ddns-us ) # test_tcp base.ddns2.recolic.net 22 | grep SSH && # test_tcp base.ddns2.recolic.net 80 && - # test_tcp nohsts.ddns2.recolic.org 22 | grep SSH && - # test_tcp nohsts.ddns2.recolic.org 80 || return $? + # test_tcp nohsts.ddns2.recolic.cc 22 | grep SSH && + # test_tcp nohsts.ddns2.recolic.cc 80 || return $? # ;; dl ) test_icmp dl.recolic.net && @@ -162,13 +162,13 @@ function do_test () { test_icmp rocket.recolic.net && curl -s https://rocket.recolic.net:444/api/info | grep 'success":true' || return $? ;; - org-dns ) - test_icmp www.recolic.org && - curl -s https://recolic.org/ || return $? + cc-dns ) + test_icmp www.recolic.cc && + curl -s https://recolic.cc/ || return $? ;; home-http ) # NO icmp required. - curl -s http://home.cnm.cool:81/ || return $? + curl -s http://home.recolic-backend.xyz:81/ || return $? ;; esac @@ -201,7 +201,7 @@ if [[ "$1" = all ]]; then do_test_twice rocket && do_test_twice shortlink && do_test_twice dl && - do_test_twice org-dns && + do_test_twice cc-dns && do_test_twice home-http exit $? fi