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

Commit e80b003

Browse files
committed
Bugfix of envvar name
1 parent b6f4961 commit e80b003

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/gortr/gortr.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const (
3333
AppVersion = "GoRTR 0.11.0"
3434

3535
ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD"
36+
ENV_SSH_KEY = "GORTR_SSH_AUTHORIZEDKEYS"
3637

3738
METHOD_NONE = iota
3839
METHOD_PASSWORD
@@ -494,7 +495,7 @@ func main() {
494495
if *SSHAuthEnableKey {
495496
var sshClientKeysToDecode string
496497
if *SSHAuthKeysList == "" {
497-
sshClientKeysToDecode = os.Getenv(*SSHAuthKeysList)
498+
sshClientKeysToDecode = os.Getenv(ENV_SSH_KEY)
498499
} else {
499500
sshClientKeysToDecodeBytes, err := ioutil.ReadFile(*SSHAuthKeysList)
500501
if err != nil {

0 commit comments

Comments
 (0)