Fix wireguard crash
This commit is contained in:
parent
3e39ac8558
commit
315e0f720a
1 changed files with 3 additions and 0 deletions
|
|
@ -223,6 +223,9 @@ func (e *Endpoint) Close() error {
|
|||
}
|
||||
|
||||
func (e *Endpoint) Lookup(address netip.Addr) *device.Peer {
|
||||
if e.allowedIPs == nil {
|
||||
return nil
|
||||
}
|
||||
return e.allowedIPs.Lookup(address.AsSlice())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue