fix(webui): allow empty OneBot tokens on loopback bind hosts
Empty inbound tokens were gated on the WebUI page hostname / client IP, so a remote panel visit blocked clearing the token even when the listener was 127.0.0.1. Trust the bind host as well: loopback listeners are not reachable from outside, while 0.0.0.0 still requires a local WebUI session.
This commit is contained in:
7 files changed
+76
-12
No files matched your search
@@ -21,7 +21,7 @@ export function accessTokenFeedback(
|
||||
: {
|
||||
valid: false,
|
||||
tone: 'error',
|
||||
message: '当前为远程访问,请使用右侧按钮生成令牌后保存。',
|
||||
message: '未绑定本机地址时,远程访问必须填写令牌;请生成令牌或将主机改为 127.0.0.1。',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user