diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-12-24 22:47:18 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2006-12-24 22:47:18 +0100 |
commit | 7bee5af91e56f1e58232b895fd40c367aec67e8a (patch) | |
tree | 38db97d9df8568d16ff0ff6b1d50bf1d38043b03 /lib/url.c | |
parent | c227706bc921c3bb426eb315c0d097df30aa9d16 (diff) |
Add tests for set_url(). Fixed a bug where the default port wasn't
set when socks5 was used.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -99,7 +99,7 @@ int url_set( url_t *url, char *set_url ) url->port = 80; else if( url->proto == PROTO_HTTPS ) url->port = 443; - else if( url->proto == PROTO_SOCKS4 || url->proto == PROTO_SOCKS4 ) + else if( url->proto == PROTO_SOCKS4 || url->proto == PROTO_SOCKS5 ) url->port = 1080; } |