Decode TXT strings as utf8, use write instead of print.
parent
405745ca79
commit
82a88ba57a
|
@ -344,18 +344,14 @@ M: TXT rdata>byte-array
|
||||||
[
|
[
|
||||||
binary <byte-reader> [
|
binary <byte-reader> [
|
||||||
[
|
[
|
||||||
read1 [
|
read1 [ read , t ] [ f ] if*
|
||||||
read , t
|
|
||||||
] [
|
|
||||||
f
|
|
||||||
] if*
|
|
||||||
] loop
|
] loop
|
||||||
] with-input-stream
|
] with-input-stream
|
||||||
] { } make [ >string ] map
|
] { } make [ utf8 decode ] map
|
||||||
] map ;
|
] map ;
|
||||||
|
|
||||||
: TXT. ( domain -- )
|
: TXT. ( domain -- )
|
||||||
dns-TXT-query TXT-message>strings [ [ print ] each ] each ;
|
dns-TXT-query TXT-message>strings [ [ write ] each ] each ;
|
||||||
|
|
||||||
: reverse-lookup ( reversed-ip -- message )
|
: reverse-lookup ( reversed-ip -- message )
|
||||||
PTR IN <query> dns-query ;
|
PTR IN <query> dns-query ;
|
||||||
|
|
Loading…
Reference in New Issue