mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
Merge pull request #243 from desimone/bug/fix-nil-pointer-trying-to-close-non-existant-proxy-clients
cmd/pomerium: fix close on nil proxy clients
This commit is contained in:
commit
e8b0bcead6
1 changed files with 4 additions and 2 deletions
|
@ -61,8 +61,10 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("cmd/pomerium: proxy")
|
||||
}
|
||||
defer proxy.AuthenticateClient.Close()
|
||||
defer proxy.AuthorizeClient.Close()
|
||||
if proxy != nil {
|
||||
defer proxy.AuthenticateClient.Close()
|
||||
defer proxy.AuthorizeClient.Close()
|
||||
}
|
||||
|
||||
go viper.WatchConfig()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue