1
mirror of https://github.com/rclone/rclone synced 2024-11-26 04:07:22 +01:00
rclone/fs/fshttp
Nick Craig-Wood cffe85e6c5 fshttp: fix --bind 0.0.0.0 allowing IPv6 and --bind ::0 allowing IPv4
Due to a bug/misfeature in the go standard library as described here:
https://github.com/golang/go/issues/48723 the go standard library
binds to both IPv4 and IPv6 when passed 0.0.0.0 or ::0.

This patch detects the bind address and forces the correct IP
protocol.

Fixes #6124
Fixes #6244
See: https://forum.rclone.org/t/issues-with-bind-0-0-0-0-and-onedrive-getting-etag-mismatch-when-using-ipv6/41379/
2023-09-01 10:47:39 +01:00
..
dialer.go fshttp: fix --bind 0.0.0.0 allowing IPv6 and --bind ::0 allowing IPv4 2023-09-01 10:47:39 +01:00
http_test.go lib/structs: factor reflection based structure manipulation into a library 2020-06-10 12:28:48 +01:00
http.go fs:Added multiple ca certificate support. 2023-01-17 12:16:11 +00:00
prometheus.go fshttp: add prometheus metrics for HTTP status code 2021-11-17 18:38:12 +03:00