Merge pull request #1 from kumy/patch-1

Fix detecting ipv4 tunnel address
This commit is contained in:
hayduck 2016-11-05 09:37:28 -04:00 committed by GitHub
commit d7b9d7a01f

View File

@ -11,7 +11,7 @@ pia_username=$(head -1 $PIA_PASSWD_FILE)
pia_passwd=$(tail -1 $PIA_PASSWD_FILE)
transmission_username=$(head -1 $TRANSMISSION_PASSWD_FILE)
transmission_passwd=$(tail -1 $TRANSMISSION_PASSWD_FILE)
local_vpn_ip=$(ip addr show tun0 | grep inet | awk '{ print $2 }')
local_vpn_ip=$(ip addr show tun0 | grep "inet " | awk '{ print $2 }')
pia_client_id_file=/etc/transmission/pia_client_id
transmission_settings_file=${TRANSMISSION_HOME}/settings.json
port_assignment_url=https://www.privateinternetaccess.com/vpninfo/port_forward_assignment