Archived
Add proxy support (fixes #271)
This commit is contained in:
1 parent
2b56961b54
commit
985ea29940
6 files changed
+102
-7
No files matched your search
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user