We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84e77e3 commit c2ee578Copy full SHA for c2ee578
stackscript.sh
@@ -8,7 +8,7 @@ PORTS_USED=`netstat -antl |grep LISTEN | awk '{ print $4 }' | cut -d: -f2|sed '/
8
PORTS_USED=`echo $PORTS_USED|sed 's/\s/$\|^/g'`
9
PORTS_USED="^${PORTS_USED}$"
10
11
-SS_PASSWORD=`dd if=/dev/random bs=32 count=1 | md5sum | cut -c-32`
+SS_PASSWORD=`dd if=/dev/urandom bs=32 count=1 | md5sum | cut -c-32`
12
SS_PORT=`seq 1025 9000 | grep -v -E "$PORTS_USED" | shuf -n 1`
13
14
wget https://raw.githubusercontent.com/shadowsocks/stackscript/master/shadowsocks.json -O /etc/shadowsocks.json
0 commit comments