remove an unnecessary call to unset_dns
The below patch removes an unnecessary call to unset_dns. It is already called in del_if and causes an error message since the interface does not exist anymore when called here. Regards, Arjen
src/tools/wg-quick/linux.bash +0 -1
@@ -300,7 +300,6 @@ cmd_down() { execute_hooks "${PRE_DOWN[@]}" [[ $SAVE_CONFIG -eq 0 ]] || save_config del_if - unset_dns execute_hooks "${POST_DOWN[@]}"
}
_______________________________________________
WireGuard mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/wireguard
del_if only hits it if it was previously set by the same process.
_______________________________________________
WireGuard mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/wireguard