mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-16 14:06:54 +02:00
No zero sequence numbers
This commit is contained in:
parent
8a92a9109a
commit
99c6513d60
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ func (bind *NativeBind) routineRouteListener(device *Device) {
|
|||
|
||||
switch hdr.Type {
|
||||
case unix.RTM_NEWROUTE, unix.RTM_DELROUTE:
|
||||
if hdr.Seq <= MaxPeers {
|
||||
if hdr.Seq <= MaxPeers && hdr.Seq > 0 {
|
||||
if uint(len(remain)) < uint(hdr.Len) {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue