diff --git a/transmission/updatePort.sh b/transmission/updatePort.sh index 3c3f276..cf272d5 100755 --- a/transmission/updatePort.sh +++ b/transmission/updatePort.sh @@ -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