Skip to content

Commit 9fe201d

Browse files
authored
fix gost error when do not type http2 port (haoel#119)
1 parent 27ff235 commit 9fe201d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install.ubuntu.18.04.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ install_shadowsocks(){
177177

178178
BIND_IP=0.0.0.0
179179

180-
if [[ -z "${PORT// }" ]] || ! [[ "${PORT}" =~ ^[0-9]+$ ]] || ! [ "$PORT" -ge 1 ] && [ "$PORT" -le 655535 ]; then
180+
if [[ -z "${PORT// }" ]] || ! [[ "${PORT}" =~ ^[0-9]+$ ]] || ! ([ "$PORT" -ge 1 ] && [ "$PORT" -le 65535 ]); then
181181
echo -e "${COLOR_ERROR}非法端口,使用默认端口 1984 !${COLOR_NONE}"
182182
PORT=1984
183183
fi

0 commit comments

Comments
 (0)