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

@ -11,7 +11,7 @@ import (
type mockOracle struct{}
func (r *mockOracle) LookupAddr(string) ([]string, error) { return []string{"localhost"}, nil }
func (r *mockOracle) LookupAddr(net.IP) ([]string, error) { return []string{"localhost"}, nil }
func (r *mockOracle) LookupCountry(net.IP) (string, error) { return "Elbonia", nil }
func (r *mockOracle) LookupCity(net.IP) (string, error) { return "Bornyasherk", nil }
func (r *mockOracle) LookupPort(net.IP, uint64) error { return nil }