mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-07-03 14:06:12 +02:00
2c2c992f29
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.