完善极光配置,格式化代码

This commit is contained in:
2025-09-30 12:33:21 +08:00
parent 37f77cd7d0
commit 75f1a17669
14 changed files with 1084 additions and 714 deletions

14
scripts/jg/down.rsc Normal file
View File

@@ -0,0 +1,14 @@
:local rtable [/ip firewall mangle get [/ip firewall mangle find src-address=$"remote-address"] new-routing-mark]
:local num [:pick $rtable begin=1 end=[:len ($rtable)]]
:local count [:len [/ip firewall mangle find new-routing-mark="r$num"]]
/ip firewall mangle remove [/ip firewall mangle find src-address=$"remote-address"]
:if ($count < 2) do={
:local user [/interface l2tp-client get [/interface l2tp-client find name="l2tp-out$num"] user ]
/tool fetch url="http://192.168.210.250:18702/server/ros/down/user/$user" mode=http
/file remove "$remoteip"
}