Skip to content

Commit

Permalink
reversing useless change
Browse files Browse the repository at this point in the history
no need to reverse order while taking town wireguard, it is already like that (plus is useless since we restart systemd-resolved.service anyhow)
  • Loading branch information
francescor authored Mar 19, 2022
1 parent 0c81e34 commit 658cd1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wirego
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ if [ "`which wg`" == "" ] ; then
fi

# check for active profile
# we reverse the order, to be able to turn profiles down starting from the last added
active_profiles=`sudo wg | grep interface | awk '{print $2}' | tac`
active_profiles=`sudo wg | grep interface | awk '{print $2}'`

# up selected
if [ "$1" == "up" ] ; then
Expand Down

0 comments on commit 658cd1b

Please sign in to comment.