mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-27 09:18:58 +03:00
11 lines
220 B
Go
11 lines
220 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestResolveRDNS(t *testing.T) {
|
|
config.DNS.BindHost = "1.1.1.1"
|
|
initDNSServer(".")
|
|
if r := resolveRDNS("1.1.1.1"); r != "one.one.one.one" {
|
|
t.Errorf("resolveRDNS(): %s", r)
|
|
}
|
|
}
|