luci-app-vssr: sync with upstream source

This commit is contained in:
CN_SZTL 2020-02-19 09:22:18 +08:00
parent 453c427daf
commit 6010452e6d
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
5 changed files with 35 additions and 10 deletions

View File

@ -1,8 +1,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-vssr
PKG_VERSION:=1.09
PKG_RELEASE:=20200217-4
PKG_VERSION:=1.10
PKG_RELEASE:=20200219-4
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray \

View File

@ -1,7 +1,7 @@
-- Copyright (C) 2017 yushi studio <ywb94@qq.com>
-- Licensed to the public under the GNU General Public License v3.
local IPK_Version="20200217.1.08"
local IPK_Version="20200219.1.10"
local m, s, o
local redir_run=0
local reudp_run=0

View File

@ -1,5 +1,7 @@
config global
option tunnel_forward '8.8.4.4:53'
option tunnel_address '0.0.0.0'
@ -7,23 +9,25 @@ config global
option pdnsd_enable '1'
option monitor_enable '1'
option global_server 'nil'
option enable_switch '1'
option switch_timeout '5'
option switch_time '667'
option switch_try_count '3'
option adblock '0'
option adblock_url 'https://gitee.com/privacy-protection-tools/anti-ad/raw/master/easylist.txt'
option enable_switch '1'
option switch_timeout '5'
option switch_try_count '3'
option switch_time '667'
config socks5_proxy
option server 'nil'
option local_port '1080'
option local_address '0.0.0.0'
option http_enable '0'
option http_port '1081'
config global_haproxy
option admin_enable '1'
option admin_port '1111'
option admin_user 'admin'
option admin_password 'root'
option admin_enable '0'
config access_control
option wan_bp_list '/etc/china_ssr.txt'
@ -41,8 +45,7 @@ config server_global
config server_subscribe
option proxy '0'
option auto_update_time '2'
option auto_update '1'
option auto_update '0'
config udp2raw
option server '127.0.0.1'
@ -71,3 +74,4 @@ config udpspeeder

View File

@ -0,0 +1,21 @@
#!/bin/sh
# Copyright (C) 2007 OpenWrt.org
/etc/init.d/vssr enabled && {
[ "$ACTION" = "ifup" ] && {
local_server=`uci get vssr.@global[0].global_server 2>/dev/null`
if [ "$local_server" = "nil" ] ;then
echo "$(date "+%Y-%m-%d %H:%M:%S") Shadowsocks/ShadowsocksR/v2ray not running!" >> /tmp/vssr.log
else
icount=`ps -w | grep ssr-retcp |grep -v grep| wc -l`
if [ $icount = 0 ] ;then
echo "$(date "+%Y-%m-%d %H:%M:%S") Shadowsocks/ShadowsocksR/v2ray/Trojan error.restart!" >> /tmp/vssr.log
/etc/init.d/vssr restart
exit 0
fi
fi
}
}