Merge branch 'backport-curl-socks5-fix' into release-3.27

Merge-request: !8872