Skip to content

Commit 12a0487

Browse files
committed
feat: add V2RAY_JSON (v2ray-json) request template type
- Added V2RAY_JSON to REQUEST_TEMPLATE_TYPE constant. - Updated SubscriptionService to handle V2RAY_JSON in clientOverride logic.
1 parent ce826aa commit 12a0487

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libs/contract/constants/subscription-template/template-type/request-template-type.constant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const REQUEST_TEMPLATE_TYPE = {
44
SINGBOX_LEGACY: 'singbox-legacy',
55
MIHOMO: 'mihomo',
66
XRAY_JSON: 'json',
7+
V2RAY_JSON: 'v2ray-json',
78
CLASH: 'clash',
89
} as const;
910

src/modules/subscription/subscription.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export class SubscriptionService {
8888
clientOverride = SUBSCRIPTION_TEMPLATE_TYPE.MIHOMO;
8989
break;
9090
case REQUEST_TEMPLATE_TYPE.XRAY_JSON:
91+
case REQUEST_TEMPLATE_TYPE.V2RAY_JSON:
9192
clientOverride = SUBSCRIPTION_TEMPLATE_TYPE.XRAY_JSON;
9293
break;
9394
case REQUEST_TEMPLATE_TYPE.CLASH:

0 commit comments

Comments
 (0)