add setDefaultHostnameVerifier

This commit is contained in:
Naoyuki Kanezawa
2015-05-02 15:26:48 +09:00
parent 9a03310a53
commit 9e4b64adcc
2 changed files with 8 additions and 4 deletions

View File

@@ -126,9 +126,8 @@ public class SSLConnectionTest extends Connection {
final BlockingQueue<Object> values = new LinkedBlockingQueue<Object>();
Socket.setDefaultSSLContext(createSSLContext());
Socket.Options opts = createOptions();
opts.hostnameVerifier = SSLConnectionTest.hostnameVerifier;
socket = new Socket(opts);
Socket.setDefaultHostnameVerifier(SSLConnectionTest.hostnameVerifier);
socket = new Socket(createOptions());
socket.on(Socket.EVENT_OPEN, new Emitter.Listener() {
@Override
public void call(Object... args) {