looterz / grimd

:zap: fast dns proxy that can run anywhere, built to black-hole internet advertisements and malware servers
MIT License
1.38k stars 108 forks source link

Race error #70

Closed gombadi closed 3 years ago

gombadi commented 4 years ago

It seems there is a race condition when setting up the grimdActivation global. I have updated it to create the reference in the Activation goroutine and pass the reference back to main via a channel.

I have created a PR if it helps - https://github.com/looterz/grimd/pull/69

ryancdotorg commented 4 years ago

Should this be closed?