Files
small-package/sub-web/patches/host.patch
2025-09-19 14:14:14 +08:00

14 lines
521 B
Diff

--- a/src/config.ts
+++ b/src/config.ts
@@ -66,8 +66,8 @@ export const backendConfig = [{
label: 'sub.d1.mk(肥羊提供-备用后端)',
value: 'https://sub.d1.mk/sub?'
}, {
- label: 'localhost:25500(自建本地服务)',
- value: 'http://localhost:25500/sub?'
+ label: `${window.location.protocol}//${window.location.hostname}:25500(自建本地服务)`,
+ value: `${window.location.protocol}//${window.location.hostname}:25500/sub?`
}];
export const externalConfig = [{
label: 'CM规则',