Skip to content

Instantly share code, notes, and snippets.

@andrewshulgin
Last active October 13, 2021 11:11
Show Gist options
  • Save andrewshulgin/958586af76caafea0dcc07d54fc33a33 to your computer and use it in GitHub Desktop.
Save andrewshulgin/958586af76caafea0dcc07d54fc33a33 to your computer and use it in GitHub Desktop.
Apply Wireguard configuration without restart
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 <WG_IFACE>" > /dev/stderr
exit 1
fi
wg addconf wg0 <(wg-quick strip wg0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment