check_http=$(curl -L http://"$nip_domain")
[ "$check_http" != "Service Unavailable" ] && { echo "You have installed EasyTrojan 2.0,please enable TCP port 80 and 443"; exit 1; }
Linux 使用curl 命令检查服务是否可用
2 min read
check_http=$(curl -L http://"$nip_domain")
[ "$check_http" != "Service Unavailable" ] && { echo "You have installed EasyTrojan 2.0,please enable TCP port 80 and 443"; exit 1; }