Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit c737d7d

Browse files
authored
Merge pull request #27 from cloudflare/bugfix/typo-env
Fix environment variable typo (#26)
2 parents 9f37ed4 + 41d8bbc commit c737d7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/gortr/gortr.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
)
3333

3434
const (
35-
ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD"
35+
ENV_SSH_PASSWORD = "GORTR_SSH_PASSWORD"
3636
ENV_SSH_KEY = "GORTR_SSH_AUTHORIZEDKEYS"
3737

3838
METHOD_NONE = iota
@@ -60,11 +60,11 @@ var (
6060

6161
SSHAuthEnablePassword = flag.Bool("ssh.method.password", false, "Enable password auth")
6262
SSHAuthUser = flag.String("ssh.auth.user", "rpki", "SSH user")
63-
SSHAuthPassword = flag.String("ssh.auth.password", "", "SSH password (if blank, will use envvar GORTR_SSH_PASSWORD)")
63+
SSHAuthPassword = flag.String("ssh.auth.password", "", fmt.Sprintf("SSH password (if blank, will use envvar %v)", ENV_SSH_PASSWORD))
6464

6565
SSHAuthEnableKey = flag.Bool("ssh.method.key", false, "Enable key auth")
6666
SSHAuthKeysBypass = flag.Bool("ssh.auth.key.bypass", false, "Accept any SSH key")
67-
SSHAuthKeysList = flag.String("ssh.auth.key.file", "", "Authorized SSH key file (if blank, will use envvar GORTR_SSH_AUTHORIZEDKEYS")
67+
SSHAuthKeysList = flag.String("ssh.auth.key.file", "", fmt.Sprintf("Authorized SSH key file (if blank, will use envvar %v", ENV_SSH_KEY))
6868

6969
TimeCheck = flag.Bool("checktime", true, "Check if file is still valid")
7070
Verify = flag.Bool("verify", true, "Check signature using provided public key")

0 commit comments

Comments
 (0)