K
K
Kostyan Kondr2016-12-28 15:15:41
go
Kostyan Kondr, 2016-12-28 15:15:41

How to make an encrypted connection in golang through a proxy?

I need to connect to an imap server through a proxy. And the server expects a secure connection. Tried to use x/net/proxy and github.com/emersion/go-imap
The problem was that in go-imap it expects net.Dialer as input, but I have proxy.Dialer and I don't understand how to connect them like that. How can I do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question