Skip to content

Commit

Permalink
ConfigFormat.PROTOBUF: strip enabled flag
Browse files Browse the repository at this point in the history
fixes gh-23
  • Loading branch information
dnet committed Jan 8, 2021
1 parent 6d376f5 commit ed573f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/burp/Enums.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
};
Expand Down

0 comments on commit ed573f4

Please sign in to comment.