Skip to content

Commit c2ee578

Browse files
author
clowwindy
committed
Update stackscript.sh
1 parent 84e77e3 commit c2ee578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackscript.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PORTS_USED=`netstat -antl |grep LISTEN | awk '{ print $4 }' | cut -d: -f2|sed '/
88
PORTS_USED=`echo $PORTS_USED|sed 's/\s/$\|^/g'`
99
PORTS_USED="^${PORTS_USED}$"
1010

11-
SS_PASSWORD=`dd if=/dev/random bs=32 count=1 | md5sum | cut -c-32`
11+
SS_PASSWORD=`dd if=/dev/urandom bs=32 count=1 | md5sum | cut -c-32`
1212
SS_PORT=`seq 1025 9000 | grep -v -E "$PORTS_USED" | shuf -n 1`
1313

1414
wget https://raw.githubusercontent.com/shadowsocks/stackscript/master/shadowsocks.json -O /etc/shadowsocks.json

0 commit comments

Comments
 (0)