wg-quick: freebsd: check for socket using -S, not -f
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
622408872f
commit
a43f0b634e
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ if_exists() {
|
||||||
|
|
||||||
del_if() {
|
del_if() {
|
||||||
[[ $HAVE_SET_DNS -eq 0 ]] || unset_dns
|
[[ $HAVE_SET_DNS -eq 0 ]] || unset_dns
|
||||||
if [[ -f /var/run/wireguard/$INTERFACE.sock ]]; then
|
if [[ -S /var/run/wireguard/$INTERFACE.sock ]]; then
|
||||||
cmd rm -f "/var/run/wireguard/$INTERFACE.sock"
|
cmd rm -f "/var/run/wireguard/$INTERFACE.sock"
|
||||||
else
|
else
|
||||||
cmd ifconfig "$INTERFACE" destroy
|
cmd ifconfig "$INTERFACE" destroy
|
||||||
|
|
Loading…
Reference in a new issue