🌴 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

@@ -0,0 +1,13 @@
{
"admin/network/natmap": {
"title": "NATMap",
"order": 70,
"action": {
"type": "view",
"path": "natmap"
},
"depends": {
"acl": [ "luci-app-natmap" ]
}
}
}
@@ -0,0 +1,24 @@
{
"luci-app-natmap": {
"description": "Grant access to LuCI app natmap",
"read": {
"file": {
"/etc/natmap/client": [ "list" ],
"/etc/natmap/notify": [ "list" ],
"/etc/natmap/ddns": [ "list" ],
"/etc/init.d/natmap reload *": [ "exec" ],
"/var/run/natmap/*": [ "read" ],
"/tmp/natmap-natBehavior": [ "read" ],
"/usr/libexec/natmap/natcheck.sh": [ "exec" ]
},
"ubus": {
"service": [ "list" ],
"luci.natmap": [ "*" ]
},
"uci": ["natmap"]
},
"write": {
"uci": ["natmap"]
}
}
}
@@ -0,0 +1,22 @@
#!/usr/bin/ucode
'use strict';
import { readfile } from 'fs';
const methods = {
get_congestions: {
call: function() {
const allowed_congestion = '/proc/sys/net/ipv4/tcp_allowed_congestion_control';
const available_congestion = '/proc/sys/net/ipv4/tcp_available_congestion_control';
const content = trim(readfile(allowed_congestion));
if (content)
return { algorithm: split(content, ' ') };
else
return { algorithm: [] };
}
}
};
return { 'luci.natmap': methods };