Skip to content

Commit

Permalink
Added support for tap0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivomarino committed Mar 16, 2020
1 parent e8ef76e commit ef46193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/nm-vpn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

CONNECTION=$(LC_ALL=C nmcli -t connection show --active | awk -F ':' '
/wg0|tun0/{vpn="ON"}; {if(/wireguard|vpn/) {vpn_name=$1} else if (/tun0/){tun_name=$1}}
/wg0|tun0|tap0/{vpn="ON"}; {if(/wireguard|vpn/) {vpn_name=$1} else if (/tun0/){tun_name=$1} else if (/tap0/){tun_name=$1}}
END{if ( (vpn) && (vpn_name)) {printf("%s", vpn_name)} else if( (vpn) && (tun_name)) {printf("%s", tun_name)}}')

LABEL_COLOR=${vpn_label_color:-$(xrescat i3xrocks.label.color)}
Expand Down

0 comments on commit ef46193

Please sign in to comment.