diff --git a/lib/url.c b/lib/url.c index 013ebac7041a67769a9c77704775f1d0145979f7..d85c614049b34474e9311f6d3163d8585f53c8db 100644 --- a/lib/url.c +++ b/lib/url.c @@ -930,7 +930,7 @@ ConnectionExists(struct UrlData *data, if(strequal(needle->protostr, check->protostr) && strequal(needle->name, check->name) && - (needle->port == check->port) ) { + (needle->remote_port == check->remote_port) ) { bool dead; if(strequal(needle->protostr, "FTP")) { /* This is FTP, verify that we're using the same name and