mirror of https://github.com/wulabing/Xray_onekey
check_exist_port bug fixed
parent
1a60013471
commit
9f5df1dda2
|
@ -246,7 +246,7 @@ domain_check(){
|
|||
}
|
||||
|
||||
port_exist_check(){
|
||||
if [[ 0 -eq `lsof -i:"$1" | wc -l` ]];then
|
||||
if [[ 0 -eq `lsof -i:"$1" | grep -i "listen" | wc -l` ]];then
|
||||
echo -e "${OK} ${GreenBG} $1 端口未被占用 ${Font}"
|
||||
sleep 1
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue