OnDNSResponse increases the counter of dns and accepted connections.
()
| 137 | |
| 138 | // OnDNSResponse increases the counter of dns and accepted connections. |
| 139 | func (s *Statistics) OnDNSResponse() { |
| 140 | s.Lock() |
| 141 | defer s.Unlock() |
| 142 | s.DNSResponses++ |
| 143 | s.Accepted++ |
| 144 | } |
| 145 | |
| 146 | // OnIgnored increases the counter of ignored and accepted connections. |
| 147 | func (s *Statistics) OnIgnored() { |