aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-12-22 16:44:15 +0100
committerDrahflow <drahflow@gmx.de>2013-12-22 16:44:15 +0100
commit95129aebebc6f2552a600e443db4a207412f5f5b (patch)
treeaadd163d84d9754d9b69f5a19073cc0fd725f161
parent2d047af39582e1eaef5139b6785d5053ac206182 (diff)
Using typed txt lib
-rw-r--r--elymas/lib/net/dns.ey3
1 files changed, 1 insertions, 2 deletions
diff --git a/elymas/lib/net/dns.ey b/elymas/lib/net/dns.ey
index b4a5dbe..11ea73d 100644
--- a/elymas/lib/net/dns.ey
+++ b/elymas/lib/net/dns.ey
@@ -15,8 +15,7 @@
# 0 -> ascii ip address
# 0 <- ipv4 address as un32
{ [ -01 "^(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)$" regex not { "not an IPv4 address" die } rep ]
- [ -01 txt .consume .|u each ] # FIXME employ typed functions and auto-map
- reverse str .fromArray
+ txt .consume .u reverse str .fromArray
} /parseIpv4 deffd
# 0 -> hostname