]> git.proxmox.com Git - pve-manager.git/commit
fix #5337: ui: parse a port in the server field
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 17:06:34 +0000 (18:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 17:07:31 +0000 (18:07 +0100)
commit302f0d083d084f26e4dd698a1244277c48988e0b
treeb7e91df3a1b28ce2fe5ef7cad9923c917a2eb58b
parentf2be47a4c522281cc9da51ea44e553d7a41b2c99
fix #5337: ui: parse a port in the server field

Based on how we handle this for PBS but without the hidden fields,
which do not really make this simpler, at least not if the logic is
only required on creation due to the field being only editable then.

As example, if the port of the ESXi host would be 8080, one would
enter `192.168.1.2:8080` for an IPv4 address or `[2001:db8::42]:8443`
for an IPv6 one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/storage/ESXIEdit.js