From d02f338d05585ec9f3b15ceb1b6e8833908c05ff Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 27 Jan 2012 17:10:11 +0100 Subject: [PATCH] Fixed tlsa name regex (thanks JP Mens) * The regex didn't allow the use of dashes(-) in the hostname part of the name string. --- swede | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swede b/swede index 861211e..ee9d768 100755 --- a/swede +++ b/swede @@ -295,7 +295,7 @@ class TLSARecord: def isNameValid(self): """Check if the name if in the correct format""" - if not re.match('^(_\d{1,5}|\*)\._(tcp|udp|sctp)\.([a-z0-9]*\.){2,}$', self.name): + if not re.match('^(_\d{1,5}|\*)\._(tcp|udp|sctp)\.([-a-z0-9]*\.){2,}$', self.name): return False return True -- 2.36.1