From ed573f480accbe62866a7c5c0a376056dc8934f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Fri, 8 Jan 2021 09:53:42 +0100 Subject: [PATCH] ConfigFormat.PROTOBUF: strip `enabled` flag fixes gh-23 --- src/main/kotlin/burp/Enums.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/burp/Enums.kt b/src/main/kotlin/burp/Enums.kt index 10637d5..6a3e451 100644 --- a/src/main/kotlin/burp/Enums.kt +++ b/src/main/kotlin/burp/Enums.kt @@ -142,8 +142,8 @@ enum class ConfigFormat { }, PROTOBUF { - override fun parse(blob: ByteArray): Piper.Config = Piper.Config.parseFrom(blob) - override fun serialize(config: Piper.Config): ByteArray = config.toByteArray() + override fun parse(blob: ByteArray): Piper.Config = Piper.Config.parseFrom(blob).updateEnabled(false) + override fun serialize(config: Piper.Config): ByteArray = config.updateEnabled(false).toByteArray() override val fileExtension: String get() = "pb" };