Files
Moyasee 2c2c992f29 fix: bind torrent client by resolved interface address
Resolve the selected adapter name to its current IP addresses at apply
time instead of passing the raw name to libtorrent. On Windows the name
from os.networkInterfaces() is the friendly name, which libtorrent does
not match (it expects the adapter GUID or an IP), so binding silently
failed there. Binding by address works the same on all platforms and
re-resolving on each apply handles the adapter reconnecting with a new
IP. If the adapter is gone the name is passed through so libtorrent
refuses to bind, keeping the kill-switch behavior. Both IPv4 and global
IPv6 addresses are bound so traffic cannot leak over the other family.
2026-07-02 21:29:28 +03:00
..