increase default random-token-length to 10

This commit is contained in:
Andrea Spacca
2023-03-11 02:22:17 +09:00
parent 0635c3c132
commit 2d02ab465c

View File

@@ -2,11 +2,12 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/dutchcoders/transfer.sh/server/storage"
"log" "log"
"os" "os"
"strings" "strings"
"github.com/dutchcoders/transfer.sh/server/storage"
"github.com/dutchcoders/transfer.sh/server" "github.com/dutchcoders/transfer.sh/server"
"github.com/fatih/color" "github.com/fatih/color"
"github.com/urfave/cli" "github.com/urfave/cli"
@@ -290,7 +291,7 @@ var globalFlags = []cli.Flag{
cli.IntFlag{ cli.IntFlag{
Name: "random-token-length", Name: "random-token-length",
Usage: "", Usage: "",
Value: 6, Value: 10,
EnvVar: "RANDOM_TOKEN_LENGTH", EnvVar: "RANDOM_TOKEN_LENGTH",
}, },
} }