diff options
author | Niluge_KiWi <kiwiiii@gmail.com> | 2024-08-27 21:41:47 +0200 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2024-09-10 20:04:37 +0200 |
commit | 8df36c454be320571005231a1c77cedb656557e1 (patch) | |
tree | f85d5b3f562daaba8c0a4174011babee9a556334 | |
parent | [Console] Fix 'move' command hanging when done (diff) | |
download | deluge-develop.tar.xz deluge-develop.zip |
Deluge & libtorrent actually accept both IP address and device/interface namesgq
as listen_interface: 540d557c which patched ui/ console & gkt3, but not
web, this fixes it.
(Inspired by https://github.com/deluge-torrent/deluge/pull/300)
(Translation should be ok: this string already exists)
Also, resync listen & outgoing widths: they hold the same data types.
Closes: https://github.com/deluge-torrent/deluge/pull/458
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | deluge/ui/web/js/deluge-all/preferences/NetworkPage.js | 14 |
2 files changed, 6 insertions, 12 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d878a488d..eb3ef277d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Python 3.6 support removed (Python >= 3.7) +### Web UI + +- Accept network interface name in addition to IP adress in "Incoming Address" + ## 2.1.1 (2022-07-10) ### Core diff --git a/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js b/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js index 5ba98e7e2..4d301a407 100644 --- a/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js @@ -9,15 +9,6 @@ */ Ext.namespace('Deluge.preferences'); -// custom Vtype for vtype:'IPAddress' -Ext.apply(Ext.form.VTypes, { - IPAddress: function (v) { - return /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(v); - }, - IPAddressText: 'Must be a numeric IP address', - IPAddressMask: /[\d\.]/i, -}); - /** * @class Deluge.preferences.Network * @extends Ext.form.FormPanel @@ -35,7 +26,7 @@ Deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, { fieldset = this.add({ xtype: 'fieldset', border: false, - title: _('Incoming Address'), + title: _('Incoming Interface'), style: 'margin-bottom: 5px; padding-bottom: 0px;', autoHeight: true, labelWidth: 1, @@ -48,7 +39,6 @@ Deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, { fieldLabel: '', labelSeparator: '', width: 200, - vtype: 'IPAddress', }) ); @@ -110,7 +100,7 @@ Deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, { name: 'outgoing_interface', fieldLabel: '', labelSeparator: '', - width: 40, + width: 200, }) ); |