mirror of
https://github.com/rclone/rclone.git
synced 2025-08-25 04:16:12 +02:00
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/
This commit is contained in:
@@ -641,6 +641,9 @@ IPv4 address (1.2.3.4), an IPv6 address (1234::789A) or host name. If
|
||||
the host name doesn't resolve or resolves to more than one IP address
|
||||
it will give an error.
|
||||
|
||||
You can use `--bind 0.0.0.0` to force rclone to use IPv4 addresses and
|
||||
`--bind ::0` to force rclone to use IPv6 addresses.
|
||||
|
||||
### --bwlimit=BANDWIDTH_SPEC ###
|
||||
|
||||
This option controls the bandwidth limit. For example
|
||||
|
Reference in New Issue
Block a user