Fix bugs in awg and wireguard protocols

This commit is contained in:
albexk 2023-11-29 16:55:17 +03:00
parent eaa209bc3a
commit d7ec611ff4
3 changed files with 14 additions and 7 deletions

View file

@ -29,8 +29,8 @@ class AwgConfig private constructor(
builder.h4
)
override fun toWgUserspaceString(): String = with(StringBuilder()) {
append(super.toWgUserspaceString())
override fun appendDeviceLine(sb: StringBuilder) = with(sb) {
super.appendDeviceLine(this)
appendLine("jc=$jc")
appendLine("jmin=$jmin")
appendLine("jmax=$jmax")
@ -40,7 +40,6 @@ class AwgConfig private constructor(
appendLine("h2=$h2")
appendLine("h3=$h3")
appendLine("h4=$h4")
return this.toString()
}
class Builder : WireguardConfig.Builder() {