Repository navigation
feat(outbound): accept the desync methods Android checks per connection - #180
Merged
Merged
Conversation
Bump github.com/Nemu-x/desync to main (673cbef, PR Nemu-x/desync#11), pinned as v0.2.1-0.20261029232908-673cbefddb80; it becomes v0.2.1 once tagged. Android denies apps SIOCOUTQNSD, so PlatformCapabilities there no longer claims split-wait sent, disorder and the TCP fake: it lists them in Unsupported and in the new Capabilities.Conditional, and a socket that cannot read its unsent bytes from TCP_INFO fails the first write before any byte is sent. Validation now accepts a method listed in Conditional and logs once per outbound that it is verified per connection, so Android configs with these methods load again. The other checks (positions, auto-ttl, combinations) are unchanged.
split-wait sent, disorder and fake are checked per connection on Android (TCP_INFO unsent bytes, Linux 4.6+); the config is accepted and a socket without them fails before sending.
This was referenced Nov 9, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On Android, SELinux stops apps from reading a socket's unsent bytes through
SIOCOUTQNSD. desync main (Nemu-x/desync#11) falls back toTCP_INFOthere, and itsPlatformCapabilitiesnow reports fake TCP, disorder andsplit-wait: sentas conditional: the library allows them but checks them on each connection.Until now the
type: desyncoutbound rejected a config that used any of those methods whenever the platform report said "unsupported", so Android configs with them failed to load. This PR:github.com/Nemu-x/desyncfrom v0.1.0 to main at 673cbef (pseudo-versionv0.2.1-0.20261029232908-673cbefddb80), which becomes v0.2.1 once tagged;fake,disorderandsplit-wait: sentwhen the library lists the method as conditional, and logs one Info line saying it is checked per connection;A socket that cannot read its unsent bytes fails on its first write (the ClientHello), so the failure shows up as a connection error, not when the config loads.
The docs give Android its own column in the OS table, with a footnote on the per-connection check, and update the
docs/config.yamlcomments.Testing
TestDesyncConditionalMethodscovers three cases:Conditionalare rejected;TestDesyncMethodsOnThisOSnow counts conditional methods as supported.go testpasses foradapter/outbound,adapterandtunnel, and vet and build pass for windows/amd64, linux/amd64 and android/arm64.