From c3199263f29e78e0869f8cc489eb44e9a0cbe20b Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Tue, 28 May 2002 22:06:01 +0000 Subject: [PATCH] Allowing ftp to work against servers that use port 22, r=bradley, sr=brendan/darin, bug 147496 git-svn-id: svn://10.0.0.236/trunk@122234 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/protocol/ftp/src/nsFtpProtocolHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/netwerk/protocol/ftp/src/nsFtpProtocolHandler.cpp b/mozilla/netwerk/protocol/ftp/src/nsFtpProtocolHandler.cpp index eddde1a98bf..438db3a3321 100644 --- a/mozilla/netwerk/protocol/ftp/src/nsFtpProtocolHandler.cpp +++ b/mozilla/netwerk/protocol/ftp/src/nsFtpProtocolHandler.cpp @@ -230,7 +230,7 @@ nsFtpProtocolHandler::NewProxiedChannel(nsIURI* url, nsIProxyInfo* proxyInfo, ns NS_IMETHODIMP nsFtpProtocolHandler::AllowPort(PRInt32 port, const char *scheme, PRBool *_retval) { - if (port == 21) + if (port == 21 || port == 22) *_retval = PR_TRUE; else *_retval = PR_FALSE;