From 402c083c4e74059994cead8867915008de5f62b8 Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Tue, 30 Jun 2020 14:10:59 -0500 Subject: [PATCH] Reorganize some code - add read and write timeouts --- CHANGELOG.md | 3 ++- src/main/kotlin/mdnet/base/settings/ServerSettings.kt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34a6db8..00e8684 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added - [2020-06-23] Added Gitlab CI integration by [@lflare]. -- [2020-06-28] Added `client_external_port setting` [@wedge1001]. +- [2020-06-28] Added `client_external_port` setting [@wedge1001]. - [2020-06-29] Added rudimentary support of Referer checking to mitigate hotlinking by [@lflare]. - [2020-06-30] Added read and write timeouts to protect against some attacks [@carbotaniuman]. ### Changed +- [2020-06-28] Added `pasued` field in ServerSettings [@carbotaniuman]. ### Deprecated diff --git a/src/main/kotlin/mdnet/base/settings/ServerSettings.kt b/src/main/kotlin/mdnet/base/settings/ServerSettings.kt index a4de8dc..1e7a720 100644 --- a/src/main/kotlin/mdnet/base/settings/ServerSettings.kt +++ b/src/main/kotlin/mdnet/base/settings/ServerSettings.kt @@ -28,6 +28,7 @@ data class ServerSettings ( val latestBuild: Int, val url: String, val compromised: Boolean, + val paused: Boolean, val tls: TlsCert? )