mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 22:15:13 +08:00
💐 Sync 2026-09-10 14:49:21
This commit is contained in:
1 parent
6fe213a608
commit
07d418c120
181 files changed
+23375
-22143
No files matched your search
@@ -556,7 +556,21 @@ function add_node()
|
||||
uci_set(uid, "group", group)
|
||||
end
|
||||
|
||||
uci_set(uid, "type", "Socks")
|
||||
if api.is_finded("ipt2socks") then
|
||||
uci_set(uid, "type", "Socks")
|
||||
elseif api.finded_com("sing-box") then
|
||||
uci_set(uid, "type", "sing-box")
|
||||
elseif api.finded_com("xray") then
|
||||
uci_set(uid, "type", "Xray")
|
||||
elseif api.is_finded("sslocal") then
|
||||
uci_set(uid, "type", "SS-Rust")
|
||||
elseif api.is_finded("ssr-local") then
|
||||
uci_set(uid, "type", "SSR")
|
||||
elseif api.finded_com("hysteria") then
|
||||
uci_set(uid, "type", "Hysteria2")
|
||||
elseif api.is_finded("naive") then
|
||||
uci_set(uid, "type", "Naiveproxy")
|
||||
end
|
||||
|
||||
if redirect == "1" then
|
||||
uci_save()
|
||||
|
||||
Reference in new issue
Block a user