[GH-ISSUE #4138] Subscription JSON template: change inbound protocol from mixed to socks #2811

Closed
opened 2026-10-31 20:28:08 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ntappw on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4138

Question

I'm using 3x-ui panel and the Happ client on iOS. The subscription JSON I receive contains the following inbound:

{
  "port": 10808,
  "protocol": "mixed",
  "tag": "mixed"
}

Unfortunately, mixed protocol doesn't work properly with iOS routing — the VPN connects but traffic isn't routed correctly.

Is there a way to customize the subscription JSON template so that the inbound protocol is socks instead of mixed? I checked the database (x-ui.db) and couldn't find a subTemplate or xrayTemplateConfig key. I also looked at the wiki but didn't see this option documented.

Ideally, I'd need either:

  • A built-in option in Panel Settings → Subscription to customize the template, or
  • A file on disk I can edit to change the generated JSON.

Thank you.

Checklist

  • This question is written entirely in English.
Originally created by @ntappw on GitHub (Apr 30, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4138 ### Question I'm using 3x-ui panel and the Happ client on iOS. The subscription JSON I receive contains the following inbound: ``` { "port": 10808, "protocol": "mixed", "tag": "mixed" } ``` Unfortunately, mixed protocol doesn't work properly with iOS routing — the VPN connects but traffic isn't routed correctly. Is there a way to customize the subscription JSON template so that the inbound protocol is socks instead of mixed? I checked the database (x-ui.db) and couldn't find a subTemplate or xrayTemplateConfig key. I also looked at the wiki but didn't see this option documented. Ideally, I'd need either: - A built-in option in Panel Settings → Subscription to customize the template, or - A file on disk I can edit to change the generated JSON. Thank you. ### Checklist - [x] This question is written entirely in English.
bsakaguchi 2026-10-31 20:28:08 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@Marat-KZN commented on GitHub (Jun 14, 2026):

Hello, is there a solution?

<!-- gh-comment-id:4702052042 --> @Marat-KZN commented on GitHub (Jun 14, 2026): Hello, is there a solution?
Author
Owner

@ntappw commented on GitHub (Jun 14, 2026):

No.

<!-- gh-comment-id:4702057917 --> @ntappw commented on GitHub (Jun 14, 2026): No.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2811
No description provided.