mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-05 22:07:06 +08:00
luci ssr plus: adjust log display
This commit is contained in:
parent
80d6d03b49
commit
1152513d14
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-ssr-plus
|
PKG_NAME:=luci-app-ssr-plus
|
||||||
PKG_VERSION:=1
|
PKG_VERSION:=1
|
||||||
PKG_RELEASE:=82
|
PKG_RELEASE:=85
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks \
|
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray \
|
||||||
|
@ -316,8 +316,10 @@ start_redir() {
|
|||||||
do
|
do
|
||||||
$sscmd -c $CONFIG_FILE $ARG_OTA -f /var/run/ssr-retcp_$i.pid >/dev/null 2>&1
|
$sscmd -c $CONFIG_FILE $ARG_OTA -f /var/run/ssr-retcp_$i.pid >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
echo "$(date "+%Y-%m-%d %H:%M:%S") Shadowsocks/ShadowsocksR $threads Threads Started!" >> /tmp/ssrplus.log
|
||||||
elif [ "$stype" == "v2ray" ] ;then
|
elif [ "$stype" == "v2ray" ] ;then
|
||||||
$sscmd -config /var/etc/v2-ssr-retcp.json >/dev/null 2>&1 &
|
$sscmd -config /var/etc/v2-ssr-retcp.json >/dev/null 2>&1 &
|
||||||
|
echo "$(date "+%Y-%m-%d %H:%M:%S") $($sscmd -version | head -1) Started!" >> /tmp/ssrplus.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$UDP_RELAY_SERVER" ] ;then
|
if [ -n "$UDP_RELAY_SERVER" ] ;then
|
||||||
|
@ -8,7 +8,7 @@ local server = ucursor:get_all("shadowsocksr", server_section)
|
|||||||
|
|
||||||
local v2ray = {
|
local v2ray = {
|
||||||
log = {
|
log = {
|
||||||
error = "/var/ssrplus.log",
|
-- error = "/var/ssrplus.log",
|
||||||
loglevel = "warning"
|
loglevel = "warning"
|
||||||
},
|
},
|
||||||
-- 传入连接
|
-- 传入连接
|
||||||
@ -68,6 +68,13 @@ local v2ray = {
|
|||||||
httpSettings = (server.transport == "h2") and {
|
httpSettings = (server.transport == "h2") and {
|
||||||
path = server.h2_path,
|
path = server.h2_path,
|
||||||
host = server.h2_host,
|
host = server.h2_host,
|
||||||
|
} or nil,
|
||||||
|
quicSettings = (server.transport == "quic") and {
|
||||||
|
security = server.quic_security,
|
||||||
|
key = server.quic_key,
|
||||||
|
header = {
|
||||||
|
type = server.quic_guise
|
||||||
|
}
|
||||||
} or nil
|
} or nil
|
||||||
},
|
},
|
||||||
mux = {
|
mux = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user