Skip to content

Commit

Permalink
Merge pull request #761 from gurbuzali/fix/3.0/client-socket-address-…
Browse files Browse the repository at this point in the history
…fix-master

ClientEndPoint getSocketAddress always returns null
  • Loading branch information
mdogan committed Aug 23, 2013
2 parents 881f1e0 + f5fd56b commit 44bb772
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -30,7 +30,6 @@
import javax.security.auth.login.LoginContext;
import javax.security.auth.login.LoginException;
import java.net.SocketAddress;
import java.util.logging.Level;

public final class ClientEndpoint implements Client {

Expand Down Expand Up @@ -92,7 +91,7 @@ public ClientPrincipal getPrincipal() {

public SocketAddress getSocketAddress() {
if (conn instanceof TcpIpConnection) {
((TcpIpConnection) conn).getSocketChannelWrapper().socket().getRemoteSocketAddress();
return ((TcpIpConnection) conn).getSocketChannelWrapper().socket().getRemoteSocketAddress();
}
return null;
}
Expand Down

0 comments on commit 44bb772

Please sign in to comment.