mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
feat(vpn): exclude more networks from vpn-start script
This commit is contained in:
parent
4c544d8508
commit
bc243cd1d3
2 changed files with 2 additions and 2 deletions
2
Guix.org
2
Guix.org
|
|
@ -568,7 +568,7 @@ As of now, CyberGhost doesn't provide ipv6, so we have to disable it.
|
||||||
|
|
||||||
#+begin_src bash :tangle ~/bin/scripts/vpn-start
|
#+begin_src bash :tangle ~/bin/scripts/vpn-start
|
||||||
export DISPLAY=:0
|
export DISPLAY=:0
|
||||||
CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*)" | sed 's/ *$//g')
|
CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*|vnet.*|virbr.*)" | sed 's/ *$//g')
|
||||||
|
|
||||||
if [ -z "$CONN" ]; then
|
if [ -z "$CONN" ]; then
|
||||||
echo "No connection!"
|
echo "No connection!"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# [[file:../../Guix.org::*vpn-start][vpn-start:1]]
|
# [[file:../../Guix.org::*vpn-start][vpn-start:1]]
|
||||||
export DISPLAY=:0
|
export DISPLAY=:0
|
||||||
CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*)" | sed 's/ *$//g')
|
CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*|vnet.*|virbr.*)" | sed 's/ *$//g')
|
||||||
|
|
||||||
if [ -z "$CONN" ]; then
|
if [ -z "$CONN" ]; then
|
||||||
echo "No connection!"
|
echo "No connection!"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue