mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
add underscore
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user