mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-21 01:37:44 +07:00
fix: bad udp behaviour
This commit is contained in:
parent
87c9b9d6a5
commit
1eaf4bb7f6
@ -596,7 +596,8 @@ func (c *ControlPlane) Serve(readyChan chan<- bool, listener *Listener) (err err
|
|||||||
c.log.Warnf("No AddrPort presented: %v, %v", lastErr, err)
|
c.log.Warnf("No AddrPort presented: %v, %v", lastErr, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
copy(data, data[dataOffset:])
|
n := copy(data, data[dataOffset:])
|
||||||
|
data = data[:n]
|
||||||
routingResult = &addrHdr.RoutingResult
|
routingResult = &addrHdr.RoutingResult
|
||||||
__ip := common.Ipv6Uint32ArrayToByteSlice(addrHdr.Ip)
|
__ip := common.Ipv6Uint32ArrayToByteSlice(addrHdr.Ip)
|
||||||
_ip, _ := netip.AddrFromSlice(__ip)
|
_ip, _ := netip.AddrFromSlice(__ip)
|
||||||
|
Loading…
Reference in New Issue
Block a user