Skip to content

panic: runtime error in reslover.go #55

@NayeemAhmed-M

Description

@NayeemAhmed-M

Hey Hi...
Resolver.go throwing this following error in an updated Go.

/root/go-workspace/pkg/mod/github.com/koenrh/s3enum@v1.0.0/consumer.go:28

image

So for the fix i did the following changes to work for me.

image

func NewDNSResolver(nsAddr string) (*DNSResolver, error) {
config, err := getConfig(nsAddr)

 //if err != nil {
	 //return nil, err
 if err!=nil {
	 log.Println("action failed: ", err)
	 return

 return &DNSResolver{
	 client: dns.Client{ReadTimeout: 2 * time.Second},
	 config: *config,
 }, nil

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions