aboutsummaryrefslogtreecommitdiffstats
path: root/community/wireguard-tools/alpine-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/wireguard-tools/alpine-compat.patch')
-rw-r--r--community/wireguard-tools/alpine-compat.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/community/wireguard-tools/alpine-compat.patch b/community/wireguard-tools/alpine-compat.patch
index 1268ffb6b9..27d9ba5a64 100644
--- a/community/wireguard-tools/alpine-compat.patch
+++ b/community/wireguard-tools/alpine-compat.patch
@@ -1,3 +1,4 @@
+
diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash
--- a/src/tools/wg-quick/linux.bash
+++ b/src/tools/wg-quick/linux.bash
@@ -6,7 +7,7 @@ diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash
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 2>/dev/null | sed -n -r 's#^(net\.ipv4.conf\.[^ .=]+\.rp_filter).*$#\1#p')
++ done < <(sysctl -a 2>/dev/null | sed -n -r 's#^(net\.ipv4.conf\.[^ .=]+\.rp_filter)#\1#p')
return 0
}