mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2026-10-02 21:36:06 +03:00
fix: change HeaderCipherNonceSize to be reported in wrong S1-S4
This commit is contained in:
1 parent
ce7cf1034d
commit
7860d60a52
1 file changed
+1
-1
+1
-1
@@ -823,7 +823,7 @@ func (d *ipcSetDevice) mergeWithDevice(device *Device) error {
|
||||
paddings := []uint32{d.paddings.init, d.paddings.response, d.paddings.cookie, d.paddings.transport}
|
||||
for i, padding := range paddings {
|
||||
if padding < HeaderCipherNonceSize {
|
||||
return fmt.Errorf("S%d must be more then 8 to use headerProtection", i)
|
||||
return fmt.Errorf("S%d must be more then %d to use headerProtection", i, HeaderCipherNonceSize)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user