Add proxy support (fixes #271)

This commit is contained in:
Audrius Butkevicius
2015-10-12 19:30:14 +01:00
parent 2b56961b54
commit 985ea29940
6 changed files with 102 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ import (
"net/url"
"time"
"github.com/syncthing/syncthing/lib/dialer"
syncthingprotocol "github.com/syncthing/syncthing/lib/protocol"
"github.com/syncthing/syncthing/lib/relay/protocol"
"github.com/syncthing/syncthing/lib/sync"
@@ -172,7 +173,7 @@ func (c *ProtocolClient) connect() error {
}
t0 := time.Now()
tcpConn, err := net.Dial("tcp", c.URI.Host)
tcpConn, err := dialer.Dial("tcp", c.URI.Host)
if err != nil {
return err
}