fix: mistyped receiver for dns/resolver/general.go

This commit is contained in:
xvzc 2024-08-19 11:01:30 +09:00
parent a244aa6f1b
commit 59a6d7b376

View File

@ -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) {