Skip to content

-4 option doesn't work when using --proxy option #11949

@ammarfaizi2

Description

@ammarfaizi2

I did this

$ curl --proxy socks5://127.0.0.1:8081 https://ip.me -v4
*   Trying 127.0.0.1:8081...
* SOCKS5 connect to IPv6 2a02:6ea0:c035::11:443 (locally resolved)
* Can't complete SOCKS5 connection to ip.me. (4)
* Closing connection 0
curl: (97) Can't complete SOCKS5 connection to ip.me. (4)

I expected the following

I want it not to resolve IPv6.

curl/libcurl version

curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd

operating system

Ubuntu 22.04
Linux integral2 6.6.0-rc2-af-home-2023-09-22-g7c039646b886 #1 SMP PREEMPT_DYNAMIC Thu Sep 21 22:16:01 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions