mirror of
https://github.com/corda/corda.git
synced 2025-01-31 16:35:43 +00:00
node-driver: Use anyAddress for RandomFree port allication
This commit is contained in:
parent
9836edd191
commit
d8ae07e771
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user