Skip to content
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

override tscert.TailscaledTransport with muxing transport #67

Merged
merged 1 commit into from
Jun 18, 2024

Commits on Jun 8, 2024

  1. override tscert.TailscaledTransport with muxing transport

    This provides an http.RoundTripper implementation that dynamically
    routes requests to the correct tsnet server's LocalAPI based on the
    ClientHelloInfo in the context.
    
    Previously, we were just overriding the tscert Dialer. That worked fine
    the first time it dialed a LocalAPI, and would correctly dial the right
    tsnet server. However, tscert caches the Transport with that Dialer, so
    requests that should be routed to different tsnet servers would be
    routed incorrectly.
    
    Updates #19
    Updates #53
    Updates #66
    
    Signed-off-by: Will Norris <[email protected]>
    willnorris committed Jun 8, 2024
    Configuration menu
    Copy the full SHA
    1fd0be7 View commit details
    Browse the repository at this point in the history