michaelsims
08/01/2016, 10:05 PMval server = (8090..9000 step 10).map { candidatePort ->
try {
DefaultHttpProxyServer.bootstrap().withPort(candidatePort).start()
} catch(ignored: BindException) {
null
}
}.filterNotNull().first()