From aae74f9ab6152fd31b52caed77c82d74c1648e8e Mon Sep 17 00:00:00 2001 From: frainzy1477 <49537471+frainzy1477@users.noreply.github.com> Date: Wed, 5 May 2021 13:14:31 +0000 Subject: [PATCH] 2.0.9h --- README.md | 20 +++++++++----------- root/etc/init.d/trojan | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3079aa6..38bf472 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Proxy Client for Openwrt Based On Trojan-GO.

- - + + @@ -19,8 +19,8 @@ - Upload ipk file to tmp folder - cd /tmp - opkg update -- opkg install luci-app-trojan_v2.0.8_all.ipk -- opkg install luci-app-trojan_v2.0.8_all.ipk --force-depends +- opkg install luci-app-trojan_v2.0.9_all.ipk +- opkg install luci-app-trojan_v2.0.9_all.ipk --force-depends ## Uninstall - opkg remove luci-app-trojan @@ -47,7 +47,7 @@ - iptables - luci - luci-base -- wget +- wget-ssl - unzip - ca-certificates - iptables-mod-tproxy @@ -55,14 +55,12 @@ - coreutils-base64 - luci-compat - +### trojan-go uri +``` +trojan-go://79225126-b565-3e5d-a576-1b8f0425e5fd@abc.xxx.com:443/?sni=abc.xxx.com&type=ws&host=cdn.xxx.com&path=/&encryption=ss%3Baes-128-gcm%3Asspassword#ABC +``` ## Credits * [Trojan-Go](https://github.com/p4gefau1t/trojan-go) by [p4gefau1t](https://github.com/p4gefau1t) ## License Luci App For Trojan-Go OpenWrt is released under the GPL v3.0 License - see detailed [LICENSE](https://github.com/frainzy1477/luci-app-trojan/blob/master/LICENSE) . - -### trojan-go uri -``` -trojan-go://79225126-b565-3e5d-a576-1b8f0425e5fd@abc.xxx.com:443/?sni=abc.xxx.com&type=ws&host=cdn.xxx.com&path=/&encryption=ss%3Baes-128-gcm%3Asspassword#ABC -``` diff --git a/root/etc/init.d/trojan b/root/etc/init.d/trojan index 549342d..1bfb801 100644 --- a/root/etc/init.d/trojan +++ b/root/etc/init.d/trojan @@ -120,7 +120,7 @@ start(){ fi rm -f /var/etc/$NAME* gen_config_file $GLOBAL_SERVER 0 - if [ "$(ls -l $CONFIG_FILE|awk '{print int($5)}')" -ne 0 ]; then + if [ -f $CONFIG_FILE ] && [ "$(ls -l $CONFIG_FILE|awk '{print int($5)}')" -ne 0 ]; then if [ "$dns_mode" != "off" ];then redir >/dev/null 2>&1 if [ "${lang}" == "en" ] || [ $lang == "auto" ];then