Skip to content

fix: use DERPPort in DERP URL if using node.HostName #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

deansheather
Copy link
Member

Currently, if node.HostName is used to generate the DERP URL for a given DERP node the port will never be applied. I tried adding the port to node.HostName in Coder but it seems to break other things in tailscale.

Append the port regardless of whether it's an IPv4 URL or a HostName URL.

Bonus: adds a magicsock test for the PR I merged yesterday, previously I only had a derphttp test for it.

@deansheather deansheather merged commit 4a17d5b into main Aug 24, 2023
@deansheather deansheather deleted the dean/derp-url-fixes branch August 24, 2023 14:35
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