author | Kim Alvefur <zash@zash.se> |
Mon, 04 Jan 2016 15:46:06 +0100 | |
changeset 7059 | 7b0651e4534f |
parent 7058 | 23de70d19e77 |
child 7060 | c633e1338554 |
net/dns.lua | file | annotate | diff | comparison | revisions |
--- a/net/dns.lua Mon Jan 04 17:47:40 2016 +0100 +++ b/net/dns.lua Mon Jan 04 15:46:06 2016 +0100 @@ -600,7 +600,7 @@ if resolv_conf then for line in resolv_conf:lines() do line = line:gsub("#.*$", "") - :match('^%s*nameserver%s+([%x:%.]*)%s*$'); + :match('^%s*nameserver%s+([%x:%.]*%%?%S*)%s*$'); if line then local ip = new_ip(line); if ip then