commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1086454 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPSClient.java
Date Tue, 29 Mar 2011 00:37:40 GMT
Author: sebb
Date: Tue Mar 29 00:37:40 2011
New Revision: 1086454

URL: http://svn.apache.org/viewvc?rev=1086454&view=rev
Log:
Use SocketClient methods

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPSClient.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPSClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPSClient.java?rev=1086454&r1=1086453&r2=1086454&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPSClient.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPSClient.java Tue
Mar 29 00:37:40 2011
@@ -183,8 +183,8 @@ public class IMAPSClient extends IMAPCli
         initSSLContext();
 
         SSLSocketFactory ssf = context.getSocketFactory();
-        String ip = _socket_.getInetAddress().getHostAddress();
-        int port = _socket_.getPort();
+        String ip = getRemoteAddress().getHostAddress();
+        int port = getRemotePort();
         SSLSocket socket =
             (SSLSocket) ssf.createSocket(_socket_, ip, port, true);
         socket.setEnableSessionCreation(true);



Mime
View raw message