projects
/
zonemaker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f036ee7
)
accept more IPv6 addresses
author
Ralf Jung
<post@ralfj.de>
Sat, 17 Oct 2015 09:00:23 +0000
(11:00 +0200)
committer
Ralf Jung
<post@ralfj.de>
Sat, 17 Oct 2015 09:00:23 +0000
(11:00 +0200)
zone.py
patch
|
blob
|
history
diff --git
a/zone.py
b/zone.py
index 5cd0d72cac2b744fd4b807cf49e79b4ffd0434e9..cbde17050231d3c00b0459880ba4e9cce3089c85 100644
(file)
--- a/
zone.py
+++ b/
zone.py
@@
-33,7
+33,7
@@
week = 7*day
REGEX_label = r'[a-zA-Z90-9]([a-zA-Z90-9-]{0,61}[a-zA-Z90-9])?' # max. 63 characters; must not start or end with hyphen
REGEX_ipv4 = r'^\d{1,3}(\.\d{1,3}){3}$'
-REGEX_ipv6 = r'^[a-fA-F0-9]{1,4}(:
[a-fA-F0-9]{1,4}){
7}$'
+REGEX_ipv6 = r'^[a-fA-F0-9]{1,4}(:
:?[a-fA-F0-9]{1,4}){1,
7}$'
def check_label(label: str) -> str:
label = str(label)