🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
config mproxy 'config'
option enabled '0'
option redir '1194'
option port '9090'
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh /etc/rc.common
# Copyright (c) 2011-2015 OpenWrt.org
START=90
start(){
enable=$(uci get mproxy.config.enabled 2>/dev/null)
port=$(uci get mproxy.config.port)
redir=$(uci get mproxy.config.redir)
if [ $enable -eq 1 ]; then
[ ! -f /etc/rc.d/S90mproxy ] && /etc/init.d/mproxy enable
/usr/bin/mproxy -l $port -r 127.0.0.1:$redir -d
else
/etc/init.d/mproxy disable
fi
}
stop(){
pid=$(ps | grep 'mproxy -l' | grep -v grep | cut -c 0-6)
kill -9 $pid
}
restart(){
stop
start
}
@@ -0,0 +1,16 @@
#!/bin/sh
uci delete firewall.mproxy
uci add firewall rule
uci rename firewall.@rule[-1]="mproxy"
uci set firewall.@rule[-1].name="mproxy"
uci set firewall.@rule[-1].target="ACCEPT"
uci set firewall.@rule[-1].src="wan"
uci set firewall.@rule[-1].proto="tcp"
uci set firewall.@rule[-1].dest_port="9090"
uci commit firewall;
/etc/init.d/mproxy enable
rm -f /tmp/luci-indexcache
exit 0
@@ -0,0 +1,11 @@
{
"luci-app-mproxy": {
"description": "Grant UCI access for luci-app-mproxy",
"read": {
"uci": [ "mproxy" ]
},
"write": {
"uci": [ "mproxy" ]
}
}
}
@@ -0,0 +1,4 @@
{
"config": "mproxy",
"init": "mproxy"
}