()
| 102 | } |
| 103 | |
| 104 | func (i *Impl) CheckNetwork() checker.Impl { |
| 105 | return checker.Func(func(r *http.Request) (bool, error) { |
| 106 | result, _ := i.uaWeight.Get(r.Context(), internal.SHA256sum(r.UserAgent())) |
| 107 | if result >= 25 { |
| 108 | return true, nil |
| 109 | } |
| 110 | |
| 111 | return false, nil |
| 112 | }) |
| 113 | } |
| 114 | |
| 115 | func (i *Impl) Hash() string { |
| 116 | return internal.SHA256sum("naive honeypot") |