Skip to content

Commit 79f8045

Browse files
committed
mod: allowing touchgal new domain
1 parent 33acc13 commit 79f8045

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/api/hikari/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const DOMAIN_PATTERNS = [
1515
/^https:\/\/([\w-]+\.)*shionlib\.com$/,
1616
// TouchGal
1717
/^https:\/\/([\w-]+\.)*touchgal\.us$/,
18+
/^https:\/\/([\w-]+\.)*touchgal\.top$/,
1819
// Nysoure
1920
/^https:\/\/([\w-]+\.)*nyne\.dev$/,
2021
// kungal

app/api/moyu/patch/has-patch/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { getRemoteIp } from '~/app/api/utils/getRemoteIp'
66
const DOMAIN_PATTERNS = [
77
/^http:\/\/localhost:\d+$/,
88
/^http:\/\/127.0.0.1:\d+$/,
9-
/^https:\/\/([\w-]+\.)*touchgal\.us$/
9+
/^https:\/\/([\w-]+\.)*touchgal\.us$/,
10+
/^https:\/\/([\w-]+\.)*touchgal\.top$/
1011
]
1112

1213
const RATE_LIMIT_MAX = 10

0 commit comments

Comments
 (0)