Merged in aslemmer-driver-dont-use-localhost (pull request )

node-driver: Use anyAddress for RandomFree port allication
This commit is contained in:
Andras Slemmer 2016-09-05 18:30:28 +01:00
commit cb467e55de

@ -94,7 +94,7 @@ sealed class PortAllocation {
class RandomFree(): PortAllocation() {
override fun nextPort(): Int {
return ServerSocket().use {
it.bind(InetSocketAddress("localhost", 0))
it.bind(InetSocketAddress(0))
it.localPort
}
}