Skip to content

Commit

Permalink
remove the license key I looked
Browse files Browse the repository at this point in the history
  • Loading branch information
Alextopher committed Jul 27, 2022
1 parent 90735ce commit 3b8e055
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/COSI-Lab/Mirror/geoip
module github.com/COSI-Lab/geoip

go 1.18

Expand Down
7 changes: 6 additions & 1 deletion update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func TestDownloadDatabase(t *testing.T) {
t.Error("MAXMIND_LICENSE_KEY environment variable not set")
return
}

// Prepare the checksum
sha256, err := downloadHash(licenseKey)
if err != nil {
Expand All @@ -65,7 +66,11 @@ func TestDownloadDatabase(t *testing.T) {

func TestLookups(t *testing.T) {
// Get the license key through environment variables
licenseKey := "O1MFhnxCY9aKUyio"
licenseKey := os.Getenv("MAXMIND_LICENSE_KEY")
if licenseKey == "" {
t.Error("MAXMIND_LICENSE_KEY environment variable not set")
return
}

geoip, err := NewGeoIPHandler(licenseKey)
if err != nil {
Expand Down

0 comments on commit 3b8e055

Please sign in to comment.