From 0311a391edd06ceb0645c5f67a29a22d4feb4c5f Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 5 Mar 2023 00:18:52 +0400 Subject: [PATCH] Replace arav.top with arav.su. --- LICENSE | 2 +- build/archlinux/PKGBUILD | 6 +++--- cmd/justcaptchad/main.go | 4 ++-- go.mod | 2 +- internal/http/handlers.go | 6 +++--- pkg/captcha/inmemdb/inmemdb.go | 2 +- pkg/captcha/inmemdb/inmemdb_test.go | 6 +++--- pkg/dwcaptcha/dwcaptcha_test.go | 2 +- pkg/dwcaptcha/dwelling_captcha.go | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/LICENSE b/LICENSE index 44428c2..5101b1a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License -Copyright (c) 2022 Alexander "Arav" Andreev +Copyright (c) 2022,2023 Alexander "Arav" Andreev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/build/archlinux/PKGBUILD b/build/archlinux/PKGBUILD index f37dc5e..8c5cc0d 100644 --- a/build/archlinux/PKGBUILD +++ b/build/archlinux/PKGBUILD @@ -1,10 +1,10 @@ -# Maintainer: Alexander "Arav" Andreev +# Maintainer: Alexander "Arav" Andreev pkgname=justcaptcha pkgver=2.0.1 pkgrel=1 pkgdesc="Just a CAPTCHA service" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') -url="https://git.arav.top/Arav/justcaptcha" +url="https://git.arav.su/Arav/justcaptcha" license=('MIT') groups=() depends=() @@ -15,7 +15,7 @@ replaces=() backup=() options=() install= -source=('https://git.arav.top/Arav/justcaptcha/archive/2.0.1.tar.gz') +source=('https://git.arav.su/Arav/justcaptcha/archive/2.0.1.tar.gz') noextract=() md5sums=('SKIP') diff --git a/cmd/justcaptchad/main.go b/cmd/justcaptchad/main.go index 05c03e9..a946234 100644 --- a/cmd/justcaptchad/main.go +++ b/cmd/justcaptchad/main.go @@ -11,7 +11,7 @@ import ( "syscall" "time" - "git.arav.top/Arav/justcaptcha/internal/http" + "git.arav.su/Arav/justcaptcha/internal/http" ) var version string @@ -25,7 +25,7 @@ func main() { log.SetFlags(0) if *showVersion { - fmt.Println("justcaptchad ver.", version, "\nCopyright (c) 2022 Alexander \"Arav\" Andreev ") + fmt.Println("justcaptchad ver.", version, "\nCopyright (c) 2022 Alexander \"Arav\" Andreev ") return } diff --git a/go.mod b/go.mod index f11b377..37c61e3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.arav.top/Arav/justcaptcha +module git.arav.su/Arav/justcaptcha go 1.19 diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 5fd346a..9d18855 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -6,9 +6,9 @@ import ( "net/http" "time" - "git.arav.top/Arav/justcaptcha/pkg/captcha" - "git.arav.top/Arav/justcaptcha/pkg/captcha/inmemdb" - "git.arav.top/Arav/justcaptcha/pkg/dwcaptcha" + "git.arav.su/Arav/justcaptcha/pkg/captcha" + "git.arav.su/Arav/justcaptcha/pkg/captcha/inmemdb" + "git.arav.su/Arav/justcaptcha/pkg/dwcaptcha" ) const errMsgWrongAnswer = "An answer provided was wrong" diff --git a/pkg/captcha/inmemdb/inmemdb.go b/pkg/captcha/inmemdb/inmemdb.go index 90a839c..c9b7ae1 100644 --- a/pkg/captcha/inmemdb/inmemdb.go +++ b/pkg/captcha/inmemdb/inmemdb.go @@ -5,7 +5,7 @@ import ( "sync" "time" - "git.arav.top/Arav/justcaptcha/pkg/captcha" + "git.arav.su/Arav/justcaptcha/pkg/captcha" ) // InMemoryCaptchaDB implementation that lives in a memory (map). diff --git a/pkg/captcha/inmemdb/inmemdb_test.go b/pkg/captcha/inmemdb/inmemdb_test.go index f727412..57e553a 100644 --- a/pkg/captcha/inmemdb/inmemdb_test.go +++ b/pkg/captcha/inmemdb/inmemdb_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "git.arav.top/Arav/justcaptcha/pkg/captcha" - "git.arav.top/Arav/justcaptcha/pkg/captcha/inmemdb" - "git.arav.top/Arav/justcaptcha/pkg/dwcaptcha" + "git.arav.su/Arav/justcaptcha/pkg/captcha" + "git.arav.su/Arav/justcaptcha/pkg/captcha/inmemdb" + "git.arav.su/Arav/justcaptcha/pkg/dwcaptcha" ) const expiry = 10 * time.Minute diff --git a/pkg/dwcaptcha/dwcaptcha_test.go b/pkg/dwcaptcha/dwcaptcha_test.go index 77d8e94..0fe3296 100644 --- a/pkg/dwcaptcha/dwcaptcha_test.go +++ b/pkg/dwcaptcha/dwcaptcha_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "git.arav.top/Arav/justcaptcha/pkg/dwcaptcha" + "git.arav.su/Arav/justcaptcha/pkg/dwcaptcha" ) const expiry = 10 * time.Minute diff --git a/pkg/dwcaptcha/dwelling_captcha.go b/pkg/dwcaptcha/dwelling_captcha.go index 8f6f805..e631cf3 100644 --- a/pkg/dwcaptcha/dwelling_captcha.go +++ b/pkg/dwcaptcha/dwelling_captcha.go @@ -5,7 +5,7 @@ import ( "math/rand" "time" - "git.arav.top/Arav/justcaptcha/pkg/captcha" + "git.arav.su/Arav/justcaptcha/pkg/captcha" "github.com/fogleman/gg" )