SHA256
1
0
forked from pool/syncthing
syncthing/syncthing-0.14.13-go-1.6-compat.patch

16 lines
359 B
Diff
Raw Normal View History

--- a/cmd/strelaysrv/main.go
+++ b/cmd/strelaysrv/main.go
@@ -129,10 +129,10 @@ func main() {
laddr.Port = 0
transport, ok := http.DefaultTransport.(*http.Transport)
if ok {
- transport.DialContext = (&net.Dialer{
+ transport.Dial = (&net.Dialer{
Timeout: 30 * time.Second,
LocalAddr: laddr,
- }).DialContext
+ }).Dial
}
}