SnoringDragon / gluetun-qbittorrent-port-manager

Automatically updates the listening port for qbittorrent to the port forwarded by gluetun.
MIT License
55 stars 8 forks source link

Check the qbittorrent used port and update it if it's different to the vpn port #4

Open revers59 opened 7 months ago

revers59 commented 7 months ago

Is it possible to add a check port of the current configured port of Qbittorrent and restart the script if the port is different between vpn and Qbittorrent ?

On another project I see some line to find the current used port of qbittorrent that can give some ideas : https://github.com/soxfor/qbittorrent-natmap/blob/main/data/start.sh

When i have some update of my docker stack I see gluetun-qbittorrent-port-manager log to says succefull change port but it's not the reality.

Qbittorrent version 4.6.2

DallasHamlin commented 4 months ago

bump

patrickaclark commented 3 months ago

@DallasHamlin @revers59

I created a fork of this project that does this/rechecks every 5 minutes as gluetun loses connection occasionally, and some VPNs vary the port on every (re)connect. The function of the script is very different to this version as it requires/calls on the Gluetun control server API vs checking /tmp/gluetun/forwarded_port file, error checks to ensure it receives a port number. Also added in compose dependencies and healthchecks

Not trying to steal this creator's thunder, just based on their repos they might be a very busy person as it's been a number of months with no response.

patrickaclark/gluetun-qbittorrent-port-manager