Skip to content

Tun icmp#122

Merged
yiguodev merged 6 commits into
mainfrom
tun-icmp
May 23, 2026
Merged

Tun icmp#122
yiguodev merged 6 commits into
mainfrom
tun-icmp

Conversation

@yiguodev
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 23, 2026 04:53
Copy link
Copy Markdown

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

This PR updates libXray’s public Xray wrappers/build pipeline to align with an Xray-core v26.5.9 checkout model, removes the deprecated MPH cache surface area, and adjusts Hysteria2 port-hopping “ports” query serialization to use the PortList.String() format.

Changes:

  • Removed MPH cache parameters/APIs (and related test/export hooks) from the Xray wrappers.
  • Updated Hysteria2 share-link generation/parsing to use ports=20000-40000 style strings.
  • Modified the build scripts to clone Xray-core by default (or use a local checkout via a local arg) and updated Go module/dependency wiring.

Reviewed changes

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

Show a summary per file
File Description
xray/xray.go Removes MPH cache API and simplifies env init + run signatures.
xray/xray_test.go Deletes the obsolete MPH cache “unsupported” test.
xray/validation.go Updates InitEnv call signature.
xray/ping.go Updates InitEnv call signature.
xray_wrapper.go Removes MPH cache fields from request types and wrapper calls.
share/hysteria_mask.go Updates parsing of ports into conf.PortList for Hy2 masks.
share/generate_share.go Generates Hy2 ports query using PortList.String().
readme/README.zh_CN.md Documents new build behavior and local arg usage.
README.md Documents new build behavior and local arg usage.
go.mod Adds local-path replace for xray-core and changes required xray-core version.
go.sum Updates sums to reflect dependency/version changes and local replace.
desktop_bin/run.go Updates RunXray invocation to new signature.
build/template/main.gotemplate Removes the exported CGoBuildMphCache entrypoint.
build/main.py Adds parsing for optional local build argument.
build/app/build.py Implements Xray-core checkout preparation + Go replace wiring; disables revert step.
build/app/windows.py Threads through use_local_xray_core flag.
build/app/linux.py Threads through use_local_xray_core flag.
build/app/apple_go.py Threads through use_local_xray_core flag.

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

Comment thread go.mod
Comment thread build/app/build.py
@yiguodev yiguodev merged commit f6ce612 into main May 23, 2026
2 checks passed
@yiguodev yiguodev deleted the tun-icmp branch May 23, 2026 05:16
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.

2 participants