From ef1bcfa5b277f90d549fd82d3556c5c01d74d260 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 28 Jul 2016 10:56:56 +0200 Subject: [PATCH] Add some docs on new ComboAddress features in Lua --- docs/markdown/recursor/scripting.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/markdown/recursor/scripting.md b/docs/markdown/recursor/scripting.md index 9625b4ea8..ac3291ad8 100644 --- a/docs/markdown/recursor/scripting.md +++ b/docs/markdown/recursor/scripting.md @@ -240,6 +240,11 @@ To compare the address (so not the port) of two ComboAddresses, use `:equal`. To convert an address to human-friendly representation, use `:toString()` or `:toStringWithPort()`. To get only the port number, use `:getPort()`. +Other functions that can be called on a ComboAddress are: + * `isIpv4` - true if the address is an IPv4 address + * `isIpv6` - true if the address is an IPv6 address + * `getBits` - the number of bits in the address + ### DNSName DNSNames are passed to various functions, and they sport the following methods: -- 2.40.0