mirror of
https://github.com/hwdsl2/wireguard-install.git
synced 2024-06-20 09:35:39 +02:00
Cleanup
This commit is contained in:
parent
f88ea691d1
commit
7519c48b3f
|
@ -212,7 +212,7 @@ if [[ ! -e /etc/wireguard/wg0.conf ]]; then
|
|||
apt-get install -y wget
|
||||
fi
|
||||
echo
|
||||
echo 'Welcome to this WireGuard road warrior installer!'
|
||||
echo 'Welcome to this WireGuard VPN server installer!'
|
||||
# If system has a single IPv4, it is selected automatically. Else, ask the user
|
||||
if [[ $(ip -4 addr | grep inet | grep -vEc '127(\.[0-9]{1,3}){3}') -eq 1 ]]; then
|
||||
ip=$(ip -4 addr | grep inet | grep -vE '127(\.[0-9]{1,3}){3}' | cut -d '/' -f 1 | grep -oE '[0-9]{1,3}(\.[0-9]{1,3}){3}')
|
||||
|
|
Loading…
Reference in New Issue
Block a user