mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
Fix bugs in awg and wireguard protocols
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user