Add cachelock mutex

This commit is contained in:
Oleksii Shevchuk 2018-01-30 21:54:32 +02:00
parent 8aaa9d1082
commit fdf7ffc67a
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ type (
TCPServer *dns.Server TCPServer *dns.Server
DNSRequests chan *DNSRequest DNSRequests chan *DNSRequest
cacheLock sync.Mutex
activeLock sync.Mutex activeLock sync.Mutex
active bool active bool
} }