NethServer / nethsecurity

NethSecurity image and build environment
https://www.nethsecurity.org/
Other
82 stars 6 forks source link

ipsec: fix wan interface retrieval #573

Closed gsanchietti closed 1 month ago

gsanchietti commented 1 month ago

Make sure at least a wan is returned. Before this commit, the function could also return a None value. In that case, the IPsec tunnel can connects but the traffic does not flow because there is no ipsecX interface.

571