aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/action.yml
diff options
context:
space:
mode:
Diffstat (limited to 'action.yml')
-rw-r--r--action.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/action.yml b/action.yml
index f8b2982..b51a2ee 100644
--- a/action.yml
+++ b/action.yml
@@ -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