diff --git a/install.sh b/install.sh index 3b429c1..e7944a5 100644 --- a/install.sh +++ b/install.sh @@ -180,7 +180,7 @@ basic_optimization(){ port_alterid_set(){ read -p "请输入连接端口(default:443):" port [[ -z ${port} ]] && port="443" - read -p "请输入alterID(default:2):" alterID + read -p "请输入alterID(default:2 仅允许填数字):" alterID [[ -z ${alterID} ]] && alterID="2" } modify_port_UUID(){ diff --git a/install_h2.sh b/install_h2.sh index a9ea6a8..31d50c6 100644 --- a/install_h2.sh +++ b/install_h2.sh @@ -177,7 +177,7 @@ dependency_install(){ port_alterid_set(){ stty erase '^H' && read -p "请输入连接端口(default:443):" port [[ -z ${port} ]] && port="443" - stty erase '^H' && read -p "请输入alterID(default:2):" alterID + stty erase '^H' && read -p "请输入alterID(default:2 仅允许填数字):" alterID [[ -z ${alterID} ]] && alterID="2" }