The following is a script I wrote to update the transmission-daemon ipv4 bind address with whatever is assigned to my devices tun0 interface.

https://github.com/dave-infinity/transmission-vpn-systemd