]> git.proxmox.com Git - pve-manager.git/commitdiff
nodeconfig acme-domain: allow domains starting with numbers
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Jul 2018 08:36:03 +0000 (10:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Jul 2018 08:36:59 +0000 (10:36 +0200)
they are valid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/NodeConfig.pm

index 33317e02b1d664aab69c85693be44ff746febce7..af1c782b09e629dfee00594a953e1041b7b0fc7d 100644 (file)
@@ -12,7 +12,7 @@ my $node_config_lock = '/var/lock/pvenode.lock';
 PVE::JSONSchema::register_format('pve-acme-domain', sub {
     my ($domain, $noerr) = @_;
 
-    my $label = qr/[a-z][a-z0-9_-]*/i;
+    my $label = qr/[a-z0-9][a-z0-9_-]*/i;
 
     return $domain if $domain =~ /^$label(?:\.$label)+$/;
     return undef if $noerr;