aboutsummaryrefslogtreecommitdiff
path: root/request/request.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yongtang@users.noreply.github.com> 2016-10-11 01:48:15 -0700
committerGravatar Miek Gieben <miek@miek.nl> 2016-10-11 09:48:15 +0100
commitf3066b94637b4278492dea13e9dea05e6abc0f0f (patch)
treecafb271a57c5c724b3930a3d06b70abd0a2beea1 /request/request.go
parentfaf83b00ddcf59ebc9507a90a2322d03bda40567 (diff)
downloadcoredns-f3066b94637b4278492dea13e9dea05e6abc0f0f.tar.gz
coredns-f3066b94637b4278492dea13e9dea05e6abc0f0f.tar.zst
coredns-f3066b94637b4278492dea13e9dea05e6abc0f0f.zip
Add unit tests for ExtractAddressFromReverse (#328)
This fix adds unit tests for `ExtractAddressFromReverse`. It also updates the implementation of `ExtractAddressFromReverse` so that only a valid IPv4 or IPv6 address (in string format) is returned. If the addresses is not valid and can not be handled by golang's `net.ParseIP` then an empty string (`""`) will be returned. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'request/request.go')
0 files changed, 0 insertions, 0 deletions