mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add prometheus to ignored ua
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -251,7 +251,7 @@ class RecordMainConnectionHandler extends ConnectionHandler {
|
|||||||
if (tid) {
|
if (tid) {
|
||||||
this.tdoc = await contest.get(domainId, tid);
|
this.tdoc = await contest.get(domainId, tid);
|
||||||
if (!this.tdoc) throw new ContestNotFoundError(domainId, tid);
|
if (!this.tdoc) throw new ContestNotFoundError(domainId, tid);
|
||||||
if (pretest || contest.canShowScoreboard.call(this, this.tdoc, true, true)) this.tid = tid.toHexString();
|
if (pretest || contest.canShowScoreboard.call(this, this.tdoc, true)) this.tid = tid.toHexString();
|
||||||
else throw new PermissionError(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD);
|
else throw new PermissionError(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD);
|
||||||
}
|
}
|
||||||
if (pretest) {
|
if (pretest) {
|
||||||
|
|||||||
@@ -228,6 +228,7 @@ const ignoreUA = [
|
|||||||
'bingbot',
|
'bingbot',
|
||||||
'Gatus',
|
'Gatus',
|
||||||
'Googlebot',
|
'Googlebot',
|
||||||
|
'Prometheus',
|
||||||
'Uptime',
|
'Uptime',
|
||||||
'YandexBot',
|
'YandexBot',
|
||||||
].join('\n');
|
].join('\n');
|
||||||
|
|||||||
Reference in new issue
Block a user