diff options
author | Bengt <32734566+bengtfredh@users.noreply.github.com> | 2022-05-01 12:51:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-01 12:51:26 +0200 |
commit | 5c173d07f50ea2bdf13d87dd5a5ed4dce6702ac6 (patch) | |
tree | 32a7cecbc3291fd1fd803a948411fa1bf5ff5f3f | |
parent | fix parameter order (diff) | |
download | setup-wireguard-5c173d07f50ea2bdf13d87dd5a5ed4dce6702ac6.tar.gz setup-wireguard-5c173d07f50ea2bdf13d87dd5a5ed4dce6702ac6.zip |
Add ip route for allowed ips
-rw-r--r-- | action.yml | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -146,6 +146,9 @@ runs: fi sudo ip link set "$ifname" up + + # Add routes for allowed_ips + for i in ${allowed_ips//,/ }; do sudo ip route replace "$i" dev "$ifname"; done } # systemd-networkd greets me with 'Temporary failure in name |