DNS ui/api: ipv6 support

This commit is contained in:
Wolfgang Bumiller 2015-10-05 09:32:47 +02:00 committed by Dietmar Maurer
parent b33af6f42e
commit f74f4349bd
2 changed files with 6 additions and 6 deletions

View File

@ -883,17 +883,17 @@ __PACKAGE__->register_method({
},
dns1 => {
description => 'First name server IP address.',
type => 'string', format => 'ipv4',
type => 'string', format => 'ip',
optional => 1,
},
dns2 => {
description => 'Second name server IP address.',
type => 'string', format => 'ipv4',
type => 'string', format => 'ip',
optional => 1,
},
dns3 => {
description => 'Third name server IP address.',
type => 'string', format => 'ipv4',
type => 'string', format => 'ip',
optional => 1,
},
},

View File

@ -20,21 +20,21 @@ Ext.define('PVE.node.DNSEdit', {
{
xtype: 'pvetextfield',
fieldLabel: gettext('DNS server') + " 1",
vtype: 'IPAddress',
vtype: 'IP64Address',
skipEmptyText: true,
name: 'dns1'
},
{
xtype: 'pvetextfield',
fieldLabel: gettext('DNS server') + " 2",
vtype: 'IPAddress',
vtype: 'IP64Address',
skipEmptyText: true,
name: 'dns2'
},
{
xtype: 'pvetextfield',
fieldLabel: gettext('DNS server') + " 3",
vtype: 'IPAddress',
vtype: 'IP64Address',
skipEmptyText: true,
name: 'dns3'
}