author | redestad |
Mon, 18 Apr 2016 16:48:12 +0200 | |
changeset 37370 | 4dcebdd2bbc0 |
parent 37369 | 770f6e0237e4 |
child 37371 | 12cf839a9b2d |
jdk/src/java.base/windows/classes/java/net/PlainSocketImpl.java | file | annotate | diff | comparison | revisions |
--- a/jdk/src/java.base/windows/classes/java/net/PlainSocketImpl.java Mon Apr 18 14:01:03 2016 +0200 +++ b/jdk/src/java.base/windows/classes/java/net/PlainSocketImpl.java Mon Apr 18 16:48:12 2016 +0200 @@ -80,7 +80,7 @@ * Constructs an instance with the given file descriptor. */ PlainSocketImpl(FileDescriptor fd) { - if (useDualStackImpl) { + if (!preferIPv4Stack) { impl = new DualStackPlainSocketImpl(fd, exclusiveBind); } else { impl = new TwoStacksPlainSocketImpl(fd, exclusiveBind);