commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1083204 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3SClient.java
Date Sat, 19 Mar 2011 16:06:30 GMT
Author: sebb
Date: Sat Mar 19 16:06:30 2011
New Revision: 1083204

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

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3SClient.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3SClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3SClient.java?rev=1083204&r1=1083203&r2=1083204&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3SClient.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3SClient.java Sat
Mar 19 16:06:30 2011
@@ -206,8 +206,8 @@ public class POP3SClient extends POP3Cli
         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