Add proxy support (fixes #271)

This commit is contained in:
Audrius Butkevicius committed 2015-10-15 21:01:42 +01:00
1 parent 2b56961b54
commit 985ea29940
6 files changed
+102 -7

No files matched your search

+2 -1
View File
@@ -25,6 +25,7 @@ import (
"strings"
"time"
"github.com/syncthing/syncthing/lib/dialer"
"github.com/syncthing/syncthing/lib/sync"
)
@@ -289,7 +290,7 @@ func parseResponse(deviceType string, resp []byte) (IGD, error) {
}
func localIP(url *url.URL) (string, error) {
conn, err := net.Dial("tcp", url.Host)
conn, err := dialer.Dial("tcp", url.Host)
if err != nil {
return "", err
}