-
Notifications
You must be signed in to change notification settings - Fork 17
Transfer TLSConfig from roundtripper in websocket dialer #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -128,6 +128,7 @@ func New(setters ...optSetter) (*Forwarder, error) { | |||
if f.httpForwarder.roundTripper == nil { | |||
f.httpForwarder.roundTripper = http.DefaultTransport | |||
} | |||
f.websocketForwarder.TLSClientConfig = f.httpForwarder.roundTripper.(*http.Transport).TLSClientConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f.httpForwarder.roundTripper
can be nil
EDIT: nope...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http.DefaultTransport
can be nil
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, read too quickly, I edited my comment just before you answered ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
related to traefik/traefik#2017