forked from pool/syncthing
16 lines
359 B
Diff
16 lines
359 B
Diff
--- 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
|
|
}
|
|
}
|
|
|