aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test.yml2
-rw-r--r--action.yml3
2 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4c6fe16..31a72b0 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,7 +12,7 @@ jobs:
test:
strategy:
matrix:
- os: [ubuntu-18.04, ubuntu-20.04, ubuntu-latest]
+ os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
runs-on: '${{ matrix.os }}'
name: 'Test: ${{ matrix.os }}'
defaults:
diff --git a/action.yml b/action.yml
index d742af1..7c75c81 100644
--- a/action.yml
+++ b/action.yml
@@ -158,6 +158,9 @@ runs:
${additionnal_wg_args[@]}
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