mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
- Currently, when adding a server, we have an option for 'default route' but unchecking it does not work. This is due to allowed_peers always containing ::0/0 and 0.0.0.0/0. Fix this by setting the allowed_peers to a value containing only the IP of the WireGuard network. Tests: - When default routing it checked, routing table shows default route for wireguard device. Traceroute confirms routing through WireGuard network. - When default routing it unchecked, routing table does not show default route for wireguard device. Traceroute confirms routing through regular network. Signed-off-by: Frederico Gomes <fredericojfgomes@gmail.com> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>