drop tun.cfg.dstHost from jwtCacheKey (#2115)

This commit is contained in:
Hugo Blom 2021-04-22 19:50:37 +02:00 committed by GitHub
parent e0c09a0998
commit 2806b67bee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ func (tun *Tunnel) run(ctx context.Context, local io.ReadWriter, rawJWT string,
}
func (tun *Tunnel) jwtCacheKey() string {
return fmt.Sprintf("%s|%s|%v", tun.cfg.dstHost, tun.cfg.proxyHost, tun.cfg.tlsConfig != nil)
return fmt.Sprintf("%s|%v", tun.cfg.proxyHost, tun.cfg.tlsConfig != nil)
}
func deBuffer(br *bufio.Reader, underlying io.Reader) io.Reader {