mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
node-driver: Use anyAddress for RandomFree port allication
This commit is contained in:
@ -94,7 +94,7 @@ sealed class PortAllocation {
|
|||||||
class RandomFree(): PortAllocation() {
|
class RandomFree(): PortAllocation() {
|
||||||
override fun nextPort(): Int {
|
override fun nextPort(): Int {
|
||||||
return ServerSocket().use {
|
return ServerSocket().use {
|
||||||
it.bind(InetSocketAddress("localhost", 0))
|
it.bind(InetSocketAddress(0))
|
||||||
it.localPort
|
it.localPort
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user