From 59a6d7b376fb88696dfff0525654a933720830af Mon Sep 17 00:00:00 2001 From: xvzc Date: Mon, 19 Aug 2024 11:01:30 +0900 Subject: [PATCH] fix: mistyped receiver for dns/resolver/general.go --- dns/resolver/general.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/resolver/general.go b/dns/resolver/general.go index 7992f7d..9c8b49f 100644 --- a/dns/resolver/general.go +++ b/dns/resolver/general.go @@ -26,8 +26,8 @@ func (r *GeneralResolver) Resolve(ctx context.Context, host string, qTypes []uin return addrs, err } -func (c *GeneralResolver) String() string { - return fmt.Sprintf("general resolver(%s)", c.server) +func (r *GeneralResolver) String() string { + return fmt.Sprintf("general resolver(%s)", r.server) } func (r *GeneralResolver) exchange(ctx context.Context, msg *dns.Msg) (*dns.Msg, error) {