commit 98740e0c173b22a52ea3765dd16bbb939311e127
parent b99e647afbe23738cffb58058bf78763a02a300b
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Mon, 25 Dec 2023 23:59:55 -0500
fix
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/cmd/dkf/main.go b/cmd/dkf/main.go
@@ -8,7 +8,7 @@ import (
_ "embed"
b64 "encoding/base64"
"fmt"
- "github.com/hashicorp/go-version"
+ versionPkg "github.com/hashicorp/go-version"
_ "github.com/mattn/go-sqlite3"
cli "github.com/urfave/cli/v2"
"log"
@@ -21,8 +21,8 @@ import (
// These variables are overwritten during the build process using ldflags
// "version" is base64 encoded to make it harder for a hacker to change
// the value by simply ctrl+f & replace the compiled binary file.
-var versionTmp = "MTAwMC4wLjAK" // Base64 encoded (`echo '1000.0.0' | base64`)
-var versionVoid = "" // Useless, just to confuse hackers :)
+var version = "MTAwMC4wLjAK" // Base64 encoded (`echo '1000.0.0' | base64`)
+var versionVoid = "" // Useless, just to confuse hackers :)
var sha = ""
var development = "1"
@@ -57,9 +57,9 @@ func void(nothing string) {
func main() {
void(versionVoid)
- versionDecodedBytes, _ := b64.StdEncoding.DecodeString(versionTmp)
+ versionDecodedBytes, _ := b64.StdEncoding.DecodeString(version)
versionDecoded := strings.TrimSpace(string(versionDecodedBytes))
- config.Global.AppVersion.Set(version.Must(version.NewVersion(versionDecoded)))
+ config.Global.AppVersion.Set(versionPkg.Must(versionPkg.NewVersion(versionDecoded)))
developmentFlag := utils.DoParseBool(development)
config.Development.Store(developmentFlag)
config.NullUserPrivateKey = string(nullPrivateKey)
@@ -76,7 +76,7 @@ func main() {
}
app.Name = "darkforest"
app.Usage = "Tor service"
- app.Version = versionTmp
+ app.Version = version
app.Flags = []cli.Flag{
&cli.StringFlag{
Name: "host",