Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
91yun committed Jun 10, 2017
1 parent c34798b commit 2c5b9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ssr-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ cd ${ssrdir}
bash setup_cymysql.sh
bash initcfg.sh
sed -i "s/'sspanelv2'/'mudbjson'/g" ${ssrdir}userapiconfig.py

myip=`curl myip.ipip.net | awk -F "" '{print $2}' | awk '{print $1}'`
sed -i "s/127.0.0.1/$myip/g" ${ssrdir}userapiconfig.py

#下载服务文件,添加到系统服务,并随机启动
if [ "$OS" == 'CentOS' ]; then
Expand Down
3 changes: 2 additions & 1 deletion ssr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ function adduser(){
echo "Press any key to start...or Press Ctrl+C to cancel"
char=`get_char`
#添加用户
python ${ssrdir}mujson_mgr.py -a -p ${shadowsocksport} -k ${shadowsockspwd} -m chacha20 -O auth_sha1_v4_compatible -o tls1.2_ticket_auth_compatible
cd ${ssrdir}
python mujson_mgr.py -a -p ${shadowsocksport} -k ${shadowsockspwd} -m chacha20 -O auth_sha1_v4_compatible -o tls1.2_ticket_auth_compatible
firewall_set
}

Expand Down

0 comments on commit 2c5b9cf

Please sign in to comment.