Remove blank lines from resolve.conf just in case

Doug Coleman 2010-10-05 15:33:42 -05:00
parent 6a78644777
commit 7765d6bdcb
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ IN: dns.unix
: load-resolve.conf ( -- seq )
"/etc/resolv.conf" utf8 file-lines
[ [ blank? ] trim ] map
[ [ blank? ] trim ] map harvest
[ "#" head? not ] filter
[ [ " " split1 swap ] dip push-at ] sequence>hashtable "nameserver" swap at ;