mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
Replaces the 'disableNonLANAccess' option with a more flexible access control system supporting 'none', 'whitelist', and 'blacklist' modes, along with IP list and X-Forwarded-For support. Updates backend API, config schema, middleware, and frontend UI to allow configuration of access control mode, IP whitelist/blacklist, and X-Forwarded-For handling. Removes legacy LAN-only access logic and updates types accordingly.
11 lines
199 B
JSON
11 lines
199 B
JSON
{
|
|
"host": "0.0.0.0",
|
|
"port": 6099,
|
|
"prefix": "",
|
|
"token": "random",
|
|
"loginRate": 3,
|
|
"accessControlMode": "none",
|
|
"ipWhitelist": [],
|
|
"ipBlacklist": [],
|
|
"enableXForwardedFor": false
|
|
} |