Skip to content

Support vless alpn config for mihomo#320

Merged
geekdada merged 4 commits intosurgioproject:masterfrom
AzunyanDaisuki:master
Feb 28, 2026
Merged

Support vless alpn config for mihomo#320
geekdada merged 4 commits intosurgioproject:masterfrom
AzunyanDaisuki:master

Conversation

@AzunyanDaisuki
Copy link
Contributor

https://wiki.metacubex.one/en/config/proxies/vless/
It has alpn config. Surgio will not read this item from Clash sub, and will not write it in clash config, even for custom vless nodes defined alpn.

@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for surgio-documentation ready!

Name Link
🔨 Latest commit a1eaae8
🔍 Latest deploy log https://app.netlify.com/projects/surgio-documentation/deploys/695b7ab967a2fa0008b04823
😎 Deploy Preview https://deploy-preview-320--surgio-documentation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for the alpn field on VLESS (and VMess TLS) nodes when working with Mihomo/Clash.Meta, so Surgio can round-trip ALPN between Clash subscriptions and generated Clash configs.

Changes:

  • Write alpn into generated VMess/VLESS Clash node objects when clashCore === 'clash.meta'.
  • Parse alpn from Clash subscription items into VMess/VLESS node configs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/utils/clash.ts Emits alpn for VMess/VLESS TLS nodes in Clash.Meta output.
src/provider/ClashProvider.ts Reads alpn arrays from Clash subscription nodes into VMess/VLESS configs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@netlify
Copy link

netlify bot commented Feb 28, 2026

Deploy Preview for surgio-documentation ready!

Name Link
🔨 Latest commit 39bdfb1
🔍 Latest deploy log https://app.netlify.com/projects/surgio-documentation/deploys/69a3025027aed10009c1949e
😎 Deploy Preview https://deploy-preview-320--surgio-documentation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@geekdada geekdada merged commit cb98bcd into surgioproject:master Feb 28, 2026
10 checks passed
@geekdada
Copy link
Member

@AzunyanDaisuki 感谢贡献代码!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants