mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
dirmngr: Fix handling of proxy URIs.
* dirmngr/http.c (send_request): We do not support socks4. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
99791184ac
commit
73d4781e45
@ -1756,9 +1756,10 @@ send_request (http_t hd, const char *httphost, const char *auth,
|
||||
|
||||
if (err)
|
||||
;
|
||||
else if (!strcmp (uri->scheme, "http") || !strcmp (uri->scheme, "socks4"))
|
||||
else if (!strcmp (uri->scheme, "http"))
|
||||
;
|
||||
else if (!strcmp (uri->scheme, "socks5h"))
|
||||
else if (!strcmp (uri->scheme, "socks4")
|
||||
|| !strcmp (uri->scheme, "socks5h"))
|
||||
err = gpg_err_make (default_errsource, GPG_ERR_NOT_IMPLEMENTED);
|
||||
else
|
||||
err = gpg_err_make (default_errsource, GPG_ERR_INV_URI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user