Skip to content

Commit

Permalink
Change to random port
Browse files Browse the repository at this point in the history
  • Loading branch information
yeahwu authored Mar 15, 2024
1 parent a9528a1 commit 7734b41
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hy2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ fi

timedatectl set-timezone Asia/Shanghai
hyPasswd=$(cat /proc/sys/kernel/random/uuid)

read -t 15 -p "回车或等待15秒为默认端口443,或者自定义端口请输入(1-65535):" getPort
if [ -z $getPort ];then
getPort=443
fi
getPort=$(shuf -i 2000-65000 -n 1)

getIP(){
local serverIP=
Expand Down

0 comments on commit 7734b41

Please sign in to comment.