From 4154b16d7d81861f2ce6e924c817ed355752742e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 24 Sep 2022 23:44:17 +0800 Subject: [PATCH] update 2022-09-24 23:44:17 --- luci-app-advanced/README.md | 33 +++++++++++++++++++ luci-app-autotimeset/README.md | 16 ++++----- luci-app-poweroffdevice/README.md | 24 +++++++------- .../luasrc/model/cbi/vssr/client-config.lua | 1 - luci-app-vssr/luasrc/view/vssr/ssrurl.htm | 9 ++--- .../root/usr/share/vssr/subscribe.lua | 7 +++- 6 files changed, 62 insertions(+), 28 deletions(-) diff --git a/luci-app-advanced/README.md b/luci-app-advanced/README.md index b79edc114..22d063bad 100644 --- a/luci-app-advanced/README.md +++ b/luci-app-advanced/README.md @@ -1,2 +1,35 @@ # luci-app-advanced luci-app-advanced 高级设置,包括smartdns,openclash,防火墙,DHCP等。 + +# My other project + +网络速度测试 :https://github.com/sirpdboy/NetSpeedTest + +定时设置插件 : https://github.com/sirpdboy/luci-app-autotimeset + +关机功能插件 : https://github.com/sirpdboy/luci-app-poweroffdevice + +opentopd主题 : https://github.com/sirpdboy/luci-theme-opentopd + +opentoks 主题: https://github.com/sirpdboy/luci-theme-opentoks [仿KOOLSAHRE主题] + +btmob 主题: https://github.com/sirpdboy/luci-theme-btmob + +系统高级设置 : https://github.com/sirpdboy/luci-app-advanced + +ddns-go动态域名: https://github.com/sirpdboy/luci-app-ddns-go + + +## 捐助 + +-如果你觉得此项目对你有帮助,请捐助我们,以使项目能持续发展,更加完善。··请作者喝杯咖啡~~~** +-你们的支持就是我的动力!** + +| 图飞了😂 | 图飞了😂 | +| :-----------------: | :-------------: | +|![xm1](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/支付宝.png) | ![xm1](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/微信.png) | + + + 图飞了😂 + + diff --git a/luci-app-autotimeset/README.md b/luci-app-autotimeset/README.md index 0e582322f..5df3a95d9 100644 --- a/luci-app-autotimeset/README.md +++ b/luci-app-autotimeset/README.md @@ -59,7 +59,9 @@ 你可以随意使用其中的源码,但请注明出处。 ============================ + # My other project + 网络速度测试 :https://github.com/sirpdboy/NetSpeedTest 定时设置插件 : https://github.com/sirpdboy/luci-app-autotimeset @@ -74,23 +76,19 @@ btmob 主题: https://github.com/sirpdboy/luci-theme-btmob 系统高级设置 : https://github.com/sirpdboy/luci-app-advanced -## 捐助 [![](https://img.shields.io/badge/-捐助-F5F5F5.svg)](#捐助-) +ddns-go动态域名: https://github.com/sirpdboy/luci-app-ddns-go -**如果你觉得此项目对你有帮助,请捐助我们,以使项目能持续发展,更加完善。··请作者喝杯咖啡~~~** -**你们的支持就是我的动力!** +## 捐助 -### 捐助方式 +-如果你觉得此项目对你有帮助,请捐助我们,以使项目能持续发展,更加完善。··请作者喝杯咖啡~~~** +-你们的支持就是我的动力!** | 图飞了😂 | 图飞了😂 | | :-----------------: | :-------------: | -|图飞了😂|图飞了😂| +|![xm1](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/支付宝.png) | ![xm1](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/微信.png) | 图飞了😂 -###### [解决 Github 网页上图片显示失败的问题](https://blog.csdn.net/qq_38232598/article/details/91346392) - -[![](https://img.shields.io/badge/TG群-点击加入-FFFFFF.svg)](https://t.me/joinchat/AAAAAEpRF88NfOK5vBXGBQ) - diff --git a/luci-app-poweroffdevice/README.md b/luci-app-poweroffdevice/README.md index 6121b56df..b97f10329 100644 --- a/luci-app-poweroffdevice/README.md +++ b/luci-app-poweroffdevice/README.md @@ -15,11 +15,11 @@ Welcome to sirpdboy's git source of packages 请 **认真阅读完毕** 本页面,本页面包含注意事项和如何使用。 poweroffdevice是一款基于OPNEWRT编译的关机源码插件。 -- +----------------------------------------- ## 写在前面: - - 这个关机功能最早使用者是KOOLSHARE的固件。苦于OPENWRT中没有关机补丁,有感于前辈们的付出,苦思2020年4月动手在OPENWRT上首次使用此插件,此源码源于官方源码重启的源码修改而来. +---------------------------------- + -这个关机功能最早使用者是KOOLSHARE的固件。苦于OPENWRT中没有关机补丁,有感于前辈们的付出,苦思2020年4月动手在OPENWRT上首次使用此插件,此源码源于官方源码重启的源码修改而来. 之前一直有朋友在问,怎么使用关机插件,关机插件是有二种使用方式。一种是下载插件编译,这相对来说占用资源多一点,另一种就是在系统的源码上修改。 ## 使用说明 [![](https://img.shields.io/badge/-使用说明-F5F5F5.svg)](#使用说明-) @@ -66,10 +66,12 @@ poweroffdevice是一款基于OPNEWRT编译的关机源码插件。 你可以随意使用其中的源码,但请注明出处。 ============================ + # My other project + 网络速度测试 :https://github.com/sirpdboy/NetSpeedTest -定时关机重启 : https://github.com/sirpdboy/luci-app-autopoweroff +定时设置插件 : https://github.com/sirpdboy/luci-app-autotimeset 关机功能插件 : https://github.com/sirpdboy/luci-app-poweroffdevice @@ -81,23 +83,19 @@ btmob 主题: https://github.com/sirpdboy/luci-theme-btmob 系统高级设置 : https://github.com/sirpdboy/luci-app-advanced -## 捐助 [![](https://img.shields.io/badge/-捐助-F5F5F5.svg)](#捐助-) +ddns-go动态域名: https://github.com/sirpdboy/luci-app-ddns-go -**如果你觉得此项目对你有帮助,请捐助我们,以使项目能持续发展,更加完善。··请作者喝杯咖啡~~~** -**你们的支持就是我的动力!** +## 捐助 -### 捐助方式 +-如果你觉得此项目对你有帮助,请捐助我们,以使项目能持续发展,更加完善。··请作者喝杯咖啡~~~** +-你们的支持就是我的动力!** | 图飞了😂 | 图飞了😂 | | :-----------------: | :-------------: | -|图飞了😂|图飞了😂| +|![xm1](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/支付宝.png) | ![xm1](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/微信.png) | 图飞了😂 -###### [解决 Github 网页上图片显示失败的问题](https://blog.csdn.net/qq_38232598/article/details/91346392) - -[![](https://img.shields.io/badge/TG群-点击加入-FFFFFF.svg)](https://t.me/joinchat/AAAAAEpRF88NfOK5vBXGBQ) - diff --git a/luci-app-vssr/luasrc/model/cbi/vssr/client-config.lua b/luci-app-vssr/luasrc/model/cbi/vssr/client-config.lua index c84769332..c35fbc505 100644 --- a/luci-app-vssr/luasrc/model/cbi/vssr/client-config.lua +++ b/luci-app-vssr/luasrc/model/cbi/vssr/client-config.lua @@ -423,7 +423,6 @@ o = s:option(Flag, 'tls', translate('TLS')) o.rmempty = true o.default = '0' o:depends('type', 'v2ray') -o:depends('type', 'trojan') o:depends('type', 'vless') o:depends('type', 'xray') diff --git a/luci-app-vssr/luasrc/view/vssr/ssrurl.htm b/luci-app-vssr/luasrc/view/vssr/ssrurl.htm index 38e6d07d2..cfef5e997 100644 --- a/luci-app-vssr/luasrc/view/vssr/ssrurl.htm +++ b/luci-app-vssr/luasrc/view/vssr/ssrurl.htm @@ -208,10 +208,9 @@ } else { url0 = ssu[1] } - var sstr = b64decsafe(url0); el('.type').value = "trojan"; el('.type').dispatchEvent(event); - var team = sstr.split('@'); + var team = url0.split('@'); var part1 = team[0].split(':'); var part2 = team[1].split(':'); var others = part2[1].split('?'); @@ -226,11 +225,13 @@ } el('.server').value = part2[0]; el('.server_port').value = others[0]; - el('.password').value = part1[0]; + el('.password').value = decodeURI(part1[0]); if (queryParam.peer || queryParam.sni) { - el('.tls').checked = true; el('.peer').value = queryParam.peer || queryParam.sni; } + if (url0.indexOf('allowInsecure=1') != -1) { + el('.insecure').value = 1; + } if (param != undefined) { rema = decodeURI(param) diff --git a/luci-app-vssr/root/usr/share/vssr/subscribe.lua b/luci-app-vssr/root/usr/share/vssr/subscribe.lua index 7e2beb406..c17435c82 100644 --- a/luci-app-vssr/root/usr/share/vssr/subscribe.lua +++ b/luci-app-vssr/root/usr/share/vssr/subscribe.lua @@ -313,7 +313,12 @@ local function processData(szType, content, groupName) result.alias = groupName .. UrlDecode(alias) result.type = 'trojan' result.server = host[1] - result.insecure = '0' + if content:find('allowInsecure=1') then + result.insecure = '1' + else + result.insecure = '0' + end + if host[2]:find('?') then local query = split(host[2], '?') result.server_port = query[1]