In shortNumbered patches on top of mihomo, each with its own tests and a note on when to drop it. The XHTTP upload and ping numbers come from a reproducible netem bench with raw data.

Veles is my fork of mihomo, a proxy core written in Go. The BPN network clients ship it instead of upstream mihomo. The repository is public under GPL-3.0, and I published 9 releases between November 4 and December 1, 2026.

Why a fork

I needed things upstream didn’t have in the version I was on. REALITY handshakes that match current Xray servers. Faster XHTTP upload in packet-up mode on high-latency links. And for the server side, an Xray-compatible gRPC API with users added at runtime and per-user limits.

So I keep my changes as patches on top of mihomo and carry them over to new upstream versions. Releases started on v1.19.33 and moved to v1.19.34.

Numbered patches

Every change is a numbered patch. Commit titles on my working branch carry P4-P12 and P19-P36, and work in progress goes up to P42. A registry has one row per patch: the problem, the files touched, where the idea or code came from, the tests, and the condition under which the patch can be removed. That last column is the one I care about most. A fork stays maintainable only if you know which patches you would delete once upstream catches up.

A few examples:

  • P7 adds an ML-KEM client fingerprint for REALITY handshakes.
  • P9 ports a cloud-storage transport (xdrive) from Xray-core. That code is MPL-2.0, so it keeps its NOTICE file.
  • P11 is the Xray gRPC API with runtime users and per-user limits.
  • P12 batches relay writes with writev. Later I moved it behind the with_relay_batch build tag (P36), so it’s opt-in.

Patches go through PRs and review inside the fork, and not all of them survive. P32 turned off QUIC keep-alive pings on Android. I reverted it and held it back from veles.4.

On the working branch this comes to 212 of my commits (169 without merges) and about 34k added lines of Go, with around 116 new test files. Some of those tests do interop against real Xray binaries. Part of the code was written by AI coding agents. I decide which patches exist, review the diffs and run the measurements.

Two XHTTP numbers that are easy to mix up

The first one is synthetic. TestBPNPacketUpThroughput talks to a fake server that replies after 150 ms, with 64 KB requests. Without my patches upload is 3.4 Mbit/s. With P5 and P8 and the default 30 ms interval it’s 13.2 Mbit/s, and 54.9 Mbit/s with the interval set to 0. Against a real Xray server under the same conditions it goes from 2.3 to 12.3 Mbit/s. This is a test server, not a network, and I don’t present it as one.

The second one comes from the netem bench. It’s a reproducible setup with four network profiles (good, mobile, bad, far), each with fixed RTT, jitter, loss and rate. Raw results go into a CSV of about 54k rows, plus scripts that collect runs and draw the charts. On the good profile single-stream upload goes from 55.4 to 84.8 Mbit/s, and the gain comes from P5. P8 cuts p50 ping from 51.5 ms to 30.5 ms, the same as the Xray client on the same bench.

Bar charts for four network profiles: p50 ping in the top row, single-stream upload in the bottom row, comparing upstream mihomo, the app build, all patches and the Xray client
netem bench, XHTTP. Top: p50 ping, ms. Bottom: single-stream upload, Mbit/s. U is upstream mihomo, R is the build in the app, B is all patches, XC is the Xray client. The dashed line is the same network without a proxy. Mobile and bad use the older v1 profiles. Chart labels are in Russian.

On bad the app build reaches the no-proxy line, so there the channel is the limit. On mobile nothing reaches the line, and the all-patches build is even a bit below upstream, so I don’t read much into it. Both of these profiles are the older v1 versions.

Upstream and the comparison table

Two fixes went back to MetaCubeX/mihomo and were merged on November 29, 2026. #3537 resets the hysteria defragger when FragCount doesn’t match. #3538 makes vmess validate the websocket upgrade and the Hijacker before writing 101.

The README has a feature comparison with mihomo v1.19.34 and Xray-core 26.11.9. I built it by reading the source code of those versions, not by running them side by side, and sing-box isn’t in it.