forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update luci-ssr-pro to fit in new luci
- Loading branch information
1 parent
690fdd1
commit 715088d
Showing
17 changed files
with
108 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
package/lean/luci-app-shadowsocksr-pro/luasrc/controller/shadowsocksr.lua
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
package/lean/luci-app-shadowsocksr-pro/root/etc/uci-defaults/shadowsocksr
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module("luci.controller.ssrpro", package.seeall) | ||
function index() | ||
if not nixio.fs.access("/etc/config/ssrpro") then | ||
return | ||
end | ||
local page | ||
page = entry({"admin", "services", "ssrpro"}, cbi("ssrpro"), _("ShadowsocksR Pro")) | ||
page.dependent = true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
11 changes: 6 additions & 5 deletions
11
...owsocksr-pro/root/etc/config/shadowsocksr → ...n/luci-app-ssr-pro/root/etc/config/ssrpro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
|
||
config shadowsocksr | ||
config ssrpro | ||
option gfwlist 'china-banned' | ||
option server 'serv-ro.ddns.info' | ||
option server_port '23143' | ||
option password 'test.TEST' | ||
option method 'aes-256-cfb' | ||
option protocol 'origin' | ||
option obfs 'plain' | ||
option enabled '0' | ||
option proxy_mode 'M' | ||
option safe_dns_tcp '1' | ||
option cron_mode '1' | ||
option cron_mode '1' | ||
option method 'none' | ||
option server '4.4.4.4' | ||
option enabled '0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...wsocksr-pro/root/etc/shadowsocksr.include → .../luci-app-ssr-pro/root/etc/ssrpro.include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
package/lean/luci-app-ssr-pro/root/etc/uci-defaults/ssrpro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
uci -q batch <<-EOF >/dev/null | ||
delete ucitrack.@ssrpro[-1] | ||
add ucitrack ssrpro | ||
set ucitrack.@ssrpro[-1].init=ssrpro | ||
commit ucitrack | ||
delete firewall.ssrpro | ||
set firewall.ssrpro=include | ||
set firewall.ssrpro.type=script | ||
set firewall.ssrpro.path=/etc/ssrpro.include | ||
set firewall.ssrpro.reload=1 | ||
commit firewall | ||
EOF | ||
|
||
/etc/init.d/ssrpro stop | ||
/etc/init.d/ssrpro enable | ||
|
||
rm -f /tmp/luci-indexcache | ||
exit 0 |