Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error in reslover.go #55

Open
NayeemAhmed-M opened this issue Dec 16, 2022 · 2 comments
Open

panic: runtime error in reslover.go #55

NayeemAhmed-M opened this issue Dec 16, 2022 · 2 comments

Comments

@NayeemAhmed-M
Copy link

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

/root/go-workspace/pkg/mod/github.com/koenrh/[email protected]/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

}

@nisnet-sansyn
Copy link

I'm also getting this error usually part way though a run though trying your fix is causing compile errors, think you could double check? and maybe make a pull request? Many thanks!

@Shirshakhtml
Copy link

Me too getting the same error, any fixes? @koenrh

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

/root/go-workspace/pkg/mod/github.com/koenrh/[email protected]/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

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants