aboutsummaryrefslogtreecommitdiffstats
path: root/lib/url.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-12-24 22:47:18 +0100
committerJelmer Vernooij <jelmer@samba.org>2006-12-24 22:47:18 +0100
commit7bee5af91e56f1e58232b895fd40c367aec67e8a (patch)
tree38db97d9df8568d16ff0ff6b1d50bf1d38043b03 /lib/url.c
parentc227706bc921c3bb426eb315c0d097df30aa9d16 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index e4deac78..c6fdc4c8 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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;
}