Ensure hostname is unrooted

This commit is contained in:
Martin Polden
2016-04-17 21:34:00 +02:00
parent 73fd32f37e
commit 74e6f4dd31
3 changed files with 17 additions and 8 deletions

View File

@ -74,7 +74,7 @@ func (a *API) newResponse(r *http.Request) (Response, error) {
if err != nil {
log.Print(err)
}
hostnames, err := a.oracle.LookupAddr(ip.String())
hostnames, err := a.oracle.LookupAddr(ip)
if err != nil {
log.Print(err)
}