mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
[headless] Set up access manager before starting server
This became necesary to due an upstream change we missed when bumping
the dependency:
ab19ff91b7
This commit is contained in:
@@ -52,7 +52,6 @@ constructor(
|
||||
.event(SERVER_START_FAILED) {serverStopped() }
|
||||
.event(SERVER_STOPPED) { serverStopped() }
|
||||
if (debug) app.enableDebugLogging()
|
||||
app.start()
|
||||
|
||||
app.accessManager { handler, ctx, _ ->
|
||||
if (ctx.header(AUTHORIZATION) == "Bearer $authToken") {
|
||||
@@ -102,6 +101,7 @@ constructor(
|
||||
webSocketController.sessions.remove(session)
|
||||
}
|
||||
}
|
||||
app.start()
|
||||
}
|
||||
|
||||
private fun serverStopped() {
|
||||
|
||||
Reference in New Issue
Block a user