Skip to content

Commit

Permalink
config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Place1 committed Nov 2, 2019
1 parent bd46088 commit e6ab13a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ func Read() *AppConfig {
}

if v, ok := os.LookupEnv("WIREGUARD_PRIVATE_KEY"); ok {
config.LogLevel = v
config.WireGuard.PrivateKey = v
}

if v, ok := os.LookupEnv("WIREGUARD_USERSPACE_IMPLEMENTATION"); ok {
config.WireGuard.UserspaceImplementation = v
}

level, err := logrus.ParseLevel(config.LogLevel)
Expand Down

0 comments on commit e6ab13a

Please sign in to comment.