remove an unnecessary call to unset_dns

Arjen Runsink arjenrr at gmail.com
Fri Nov 1 00:40:16 CET 2019


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


diff --git a/src/tools/wg-quick/linux.bash 
b/src/tools/wg-quick/linux.bash
index e690944..d2c7753 100755
--- a/src/tools/wg-quick/linux.bash
+++ b/src/tools/wg-quick/linux.bash
@@ -300,7 +300,6 @@ cmd_down() {
    execute_hooks "${PRE_DOWN[@]}"
    [[ $SAVE_CONFIG -eq 0 ]] || save_config
    del_if
- unset_dns
    execute_hooks "${POST_DOWN[@]}"
 }






More information about the WireGuard mailing list