mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
ignore comment line in resolv.conf
This commit is contained in:
@@ -161,7 +161,7 @@ local function parse_resolv_conf()
|
||||
|
||||
local server
|
||||
for line in f:lines() do
|
||||
server = line:match("%s*nameserver%s+([^#;%s]+)")
|
||||
server = line:match("^%s*nameserver%s+([^#;%s]+)")
|
||||
if server then
|
||||
break
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user