mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
Merge pull request #11592 from sledgehammer999/refactor_listeningAddr
Rework the listening IP/interface selection code
This commit is contained in:
@@ -1438,6 +1438,8 @@
|
||||
if (!addresses) return;
|
||||
|
||||
$('optionalIPAddressToBind').options.add(new Option('QBT_TR(All addresses)QBT_TR[CONTEXT=OptionDialog]', ''));
|
||||
$('optionalIPAddressToBind').options.add(new Option('QBT_TR(All IPv4 addresses)QBT_TR[CONTEXT=OptionDialog]', '0.0.0.0'));
|
||||
$('optionalIPAddressToBind').options.add(new Option('QBT_TR(All IPv6 addresses)QBT_TR[CONTEXT=OptionDialog]', '::'));
|
||||
addresses.forEach(function(item, index) {
|
||||
$('optionalIPAddressToBind').options.add(new Option(item, item));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user