Skip to content

fix: generate dual-stack Mimic filters for wildcard server listeners - #1662

Merged
tobyxdd merged 2 commits into
HyNetworks:masterfrom
mvanhorn:fix/1661-mimic-dual-stack-wildcard-filter
Aug 21, 2026
Merged

tobyxdd merged 2 commits into
HyNetworks:masterfrom
mvanhorn:fix/1661-mimic-dual-stack-wildcard-filter

Conversation

@mvanhorn

Copy link
Copy Markdown
Contributor

Represent the filters derived for a Mimic instance as a collection: clients and explicitly bound servers retain one family-specific filter, while an unspecified server listener produces both IPv4 (0.0.0.0) and IPv6 ([::]) local filters with the existing passive-handshake settings. Enabling Mimic with the server listening on :58000 prevents the reporter's IPv6 client from connecting, while the same Hysteria configuration works without Mimic.

A server bound to an explicit IPv4 address generates one local=<ipv4>:<port>,handshake=0:3 filter, preserving current IPv4 behavior; A server bound to an explicit IPv6 address generates one bracketed local=[<ipv6>]:<port>,handshake=0:3 filter.

Closes #1661

@tobyxdd tobyxdd self-assigned this Aug 17, 2026
@tobyxdd
tobyxdd force-pushed the fix/1661-mimic-dual-stack-wildcard-filter branch from bc10780 to 559102b Compare August 21, 2026 00:36
@tobyxdd
tobyxdd merged commit cb70589 into HyNetworks:master Aug 21, 2026
1 check passed
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.

启用mimic后连接不上,直接被rst, 不启用mimic一切正常

2 participants