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