diff options
author | 2016-10-11 01:48:15 -0700 | |
---|---|---|
committer | 2016-10-11 09:48:15 +0100 | |
commit | f3066b94637b4278492dea13e9dea05e6abc0f0f (patch) | |
tree | cafb271a57c5c724b3930a3d06b70abd0a2beea1 /request/request.go | |
parent | faf83b00ddcf59ebc9507a90a2322d03bda40567 (diff) | |
download | coredns-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