Wireguard: Decouple server endpoint DNS from address option#5417
Merged
Wireguard: Decouple server endpoint DNS from address option#5417
Conversation
Previously, Wireguard server endpoint's domain resolution was incorrectly constrained by the local `address` option. For example, `ForceIPv6v4` might fail to resolve AAAA records for the server domain if no IPv6 was explicitly configured in the `address` option. This commit decouples the server endpoint's domain resolution from the local `address` configuration. It ensures the Wireguard server address is resolved independently, allowing its `domainStrategy` to function correctly without being limited by the client's local network or `address` settings.
Meo597
added a commit
to XTLS/Xray-docs-next
that referenced
this pull request
Dec 13, 2025
Clarified the constraints of the 'address' option in relation to the 'domainStrategy' for Wireguard. XTLS/Xray-core#5417
Member
|
Yeah I think you are right. I was copying this piece from the process() and didn't pay too much attention. Thanks for the fix! |
yuhan6665
pushed a commit
to XTLS/Xray-docs-next
that referenced
this pull request
Dec 14, 2025
* Wireguard: domainStrategy * PR#5417 Clarified the constraints of the 'address' option in relation to the 'domainStrategy' for Wireguard. XTLS/Xray-core#5417
Collaborator
Author
done |
5 tasks
This was referenced Jan 13, 2026
1 task
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.
Previously, Wireguard server endpoint's domain resolution was incorrectly constrained by the local
addressoption. For example,ForceIPv6v4might fail to resolve AAAA records for the server domain if no IPv6 was explicitly configured in theaddressoption.This commit decouples the server endpoint's domain resolution from the local
addressconfiguration. It ensures the Wireguard server address is resolved independently, allowing itsdomainStrategyto function correctly without being limited by the client's local network oraddresssettings.