Commit Graph
4 Commits
Author SHA1 Message Date
Tim CooperandGitHub 12eb59f611 refactor geoip (#1442)
- Introduce a new Client type to remove the global variables from the file
- Use the sync package to prevent race conditions with the cache and
  enabled flag
- Cache results for IPs, even if the result is nil

There are still data races around the client.Geo variable, but that can be
resolved in a future commit.
2021-10-12 13:21:37 -07:00
Tim CooperandGitHub 9a912d5385 remove global variables from core/storageproviders (#1444) 2021-10-11 16:29:36 -07:00
Tim CooperandGitHub 3717a2ebeb fix insecure math/rand use for access token generation (#1441) 2021-10-01 12:46:42 -07:00
Tim CooperandGitHub fe47c99ac2 do not pass http.ResponseWriter as pointer to EnableCors (#1440) 2021-10-01 12:40:13 -07:00