Use tls.Dial() when forwarding a connection to a proxy with TLS configured
This PR is fixing the failing tests from the PR which is now stale as @tscolari is no longer working on this.
I updated it to move client_tls to tls.client based on the discussion in the issue.
@andydunstall Hey, let me know if you have any feedback you'd like me to address.
@andydunstall thanks for the feedback, updated. I also needed to add the server name to the TLS config so that you can set it to use the expected hostname from the certificate instead of just the IP.
@andydunstall nudge
@jjcollinge Sorry for the delay! (Again!)
I've moved jobs so no longer checking GH regularly, and found my email notifications have been disabled (will fix to get notifications properly)
This looks good thanks!