bug fix: allow numbers in domain

This commit is contained in:
Usman Nasir
2020-02-27 16:51:17 +05:00
parent fdc2134c7e
commit 5d34aad07b
4 changed files with 11 additions and 11 deletions

View File

@@ -249,7 +249,7 @@ class backupSchedule:
pass
for virtualHost in os.listdir("/home"):
if match(r'^[a-zA-Z0-9-]*[a-zA-Z0-9-]{0,61}[a-zA-Z0-9-](?:\.[a-zA-Z-]{2,})+$', virtualHost, M | I):
if match(r'^[a-zA-Z0-9-]*[a-zA-Z0-9-]{0,61}[a-zA-Z0-9-](?:\.[a-zA-Z0-9-]{2,})+$', virtualHost, M | I):
backupSchedule.createBackup(virtualHost, ipAddress, backupLogPath, port)