We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e93f0c commit af3c0c4Copy full SHA for af3c0c4
portalProxy/src/main/kotlin/Portal.kt
@@ -1,5 +1,6 @@
1
package de.binarynoise.captiveportalautologin.portalproxy.portal
2
3
+import java.util.concurrent.ConcurrentHashMap
4
import kotlinx.coroutines.CoroutineScope
5
import kotlinx.html.*
6
import kotlinx.html.stream.*
@@ -12,7 +13,7 @@ import io.vertx.kotlin.coroutines.coroutineRouter
12
13
const val portalHost = "binarynoise.de"
14
const val portalPort = 8000
15
-private val database = HashMap<String, Boolean>()
16
+private val database = ConcurrentHashMap<String, Boolean>()
17
18
fun CoroutineScope.portalRouter(vertx: Vertx): Router {
19
val router = Router.router(vertx)
0 commit comments