add underscore

This commit is contained in:
Cloud Wu
2015-05-28 16:18:56 +08:00
parent ca50a5f518
commit 07dbfd8651

View File

@@ -88,7 +88,7 @@ local function verify_domain_name(name)
if #name > MAX_DOMAIN_LEN then
return false
end
if not name:match("^[%l%d-%.]+$") then
if not name:match("^[_%l%d%-%.]+$") then
return false
end
for w in name:gmatch("([_%w%-]+)%.?") do