It's not really mine
This commit is contained in:
parent
2679579f44
commit
6bb32c8059
8
main.go
8
main.go
@ -141,14 +141,14 @@ func main() {
|
|||||||
|
|
||||||
rand.Seed(time.Now().UnixNano())
|
rand.Seed(time.Now().UnixNano())
|
||||||
|
|
||||||
var myhandler http.Handler
|
var handler http.Handler
|
||||||
if opts.GCPHealthChecks {
|
if opts.GCPHealthChecks {
|
||||||
myhandler = gcpHealthcheck(LoggingHandler(os.Stdout, oauthproxy, opts.RequestLogging, opts.RequestLoggingFormat))
|
handler = gcpHealthcheck(LoggingHandler(os.Stdout, oauthproxy, opts.RequestLogging, opts.RequestLoggingFormat))
|
||||||
} else {
|
} else {
|
||||||
myhandler = LoggingHandler(os.Stdout, oauthproxy, opts.RequestLogging, opts.RequestLoggingFormat)
|
handler = LoggingHandler(os.Stdout, oauthproxy, opts.RequestLogging, opts.RequestLoggingFormat)
|
||||||
}
|
}
|
||||||
s := &Server{
|
s := &Server{
|
||||||
Handler: myhandler,
|
Handler: handler,
|
||||||
Opts: opts,
|
Opts: opts,
|
||||||
}
|
}
|
||||||
s.ListenAndServe()
|
s.ListenAndServe()
|
||||||
|
Loading…
Reference in New Issue
Block a user