diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-28 19:03:11 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-28 21:25:49 +0100 |
commit | 90d6eff039e7afd86dbc82f39b263f9540429d7a (patch) | |
tree | 4a97f01385d69911797e5b0242fe7a73c2787063 /src | |
parent | version: bump snapshot (diff) | |
download | wireguard-monolithic-historical-90d6eff039e7afd86dbc82f39b263f9540429d7a.tar.xz wireguard-monolithic-historical-90d6eff039e7afd86dbc82f39b263f9540429d7a.zip |
wg-quick: freebsd: rebreak interface loopback, while fixing localhost
The commit 7c833642 ("wg-quick: freebsd: allow loopback to work") was
supposed to make things better, but actually it just started sending
legitimate localhost traffic over the WireGuard interface, which is
really quite bad.
This reverts commit 7c833642dfa342218602ab18e7091e86408d2982.
Reported-by: Matt Smith <matt.xtaz@gmail.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/tools/wg-quick/freebsd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wg-quick/freebsd.bash b/src/tools/wg-quick/freebsd.bash index 93f1a3b..e83dbef 100755 --- a/src/tools/wg-quick/freebsd.bash +++ b/src/tools/wg-quick/freebsd.bash @@ -158,7 +158,7 @@ add_addr() { if [[ $1 == *:* ]]; then cmd ifconfig "$INTERFACE" inet6 "$1" alias else - cmd ifconfig "$INTERFACE" inet "$1" 127.0.0.1 alias + cmd ifconfig "$INTERFACE" inet "$1" "${1%%/*}" alias fi } |