diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-01 21:37:53 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-02 02:45:53 +0200 |
commit | 58f3b56a55dcd23c2a48ed04bed68655489eaa29 (patch) | |
tree | 75eed18e0bbe0607f063ac23506a92d547bf7bae | |
parent | debug: add better insert target (diff) | |
download | wireguard-monolithic-historical-58f3b56a55dcd23c2a48ed04bed68655489eaa29.tar.xz wireguard-monolithic-historical-58f3b56a55dcd23c2a48ed04bed68655489eaa29.zip |
wg-quick: anchor sysctl regex to start and end
This doesn't actually fix a real problem, but it is more correct than
not having it.
Suggested-by: Aaron Sigel <aaron@vtty.com>
-rwxr-xr-x | src/tools/wg-quick.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wg-quick.bash b/src/tools/wg-quick.bash index e5ae48f..c70c078 100755 --- a/src/tools/wg-quick.bash +++ b/src/tools/wg-quick.bash @@ -163,7 +163,7 @@ add_default() { local key value while read -r key _ value; do [[ $value -eq 1 ]] && sysctl -q "$key=2" - done < <(sysctl -a -r 'net\.ipv4.conf\..+\.rp_filter') + done < <(sysctl -a -r '^net\.ipv4.conf\.[^ .=]+\.rp_filter$') return 0 } |