mirror of
https://github.com/corda/corda.git
synced 2025-04-11 13:21:26 +00:00
Merged in aslemmer-driver-dont-use-localhost (pull request #327)
node-driver: Use anyAddress for RandomFree port allication
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user