Update check_port.sh

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 4 years ago committed by GitHub
parent 621eedf095
commit 2711ea8571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      check_port.sh

@ -5,8 +5,8 @@ yellow(){ echo -e "\033[33m\033[01m$1\033[0m"; }
green(){ echo -e "\033[32m\033[01m$1\033[0m"; } green(){ echo -e "\033[32m\033[01m$1\033[0m"; }
reading(){ read -rp "$(green "$1")" "$2"; } reading(){ read -rp "$(green "$1")" "$2"; }
green "\n 本脚说明:测端口状态:打开/关闭,核心服务: https://ping.pe/ ,请知悉!" green "\n 本脚说明:测端口状态:打开/关闭,核心服务来自: https://ping.pe/ ,请知悉!"
[[ -z "$ip" || $ip = '[IP:PORT]' ]] && reading "\n 请填入 IPv4:PORT 或者 [IPv6]:PORT: " ip [[ -z "$ip" || $ip = '[IP:PORT]' ]] && reading "\n 请填入 IPv4:PORT 或者 [IPv6]:PORT, 端口不填默认为80: " ip
[[ ! $ip =~ '.' ]] && STACK='6' [[ ! $ip =~ '.' ]] && STACK='6'
yellow "\n 检测中,请稍等片刻。\n" yellow "\n 检测中,请稍等片刻。\n"

Loading…
Cancel
Save