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

Commit

Permalink
Bugfix of envvar name
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn committed Apr 11, 2019
1 parent b6f4961 commit e80b003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/gortr/gortr.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const (
AppVersion = "GoRTR 0.11.0"

ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD"
ENV_SSH_KEY = "GORTR_SSH_AUTHORIZEDKEYS"

METHOD_NONE = iota
METHOD_PASSWORD
Expand Down Expand Up @@ -494,7 +495,7 @@ func main() {
if *SSHAuthEnableKey {
var sshClientKeysToDecode string
if *SSHAuthKeysList == "" {
sshClientKeysToDecode = os.Getenv(*SSHAuthKeysList)
sshClientKeysToDecode = os.Getenv(ENV_SSH_KEY)
} else {
sshClientKeysToDecodeBytes, err := ioutil.ReadFile(*SSHAuthKeysList)
if err != nil {
Expand Down

0 comments on commit e80b003

Please sign in to comment.