http_ntlm: fix panic due to unintialized embedded field (#3120)
This commit is contained in:
parent
217419f6d9
commit
fb5168d3b4
1 changed files with 6 additions and 2 deletions
|
|
@ -60,8 +60,12 @@ type NTLMTransport struct {
|
||||||
// CaddyModule returns the Caddy module information.
|
// CaddyModule returns the Caddy module information.
|
||||||
func (NTLMTransport) CaddyModule() caddy.ModuleInfo {
|
func (NTLMTransport) CaddyModule() caddy.ModuleInfo {
|
||||||
return caddy.ModuleInfo{
|
return caddy.ModuleInfo{
|
||||||
ID: "http.reverse_proxy.transport.http_ntlm",
|
ID: "http.reverse_proxy.transport.http_ntlm",
|
||||||
New: func() caddy.Module { return new(NTLMTransport) },
|
New: func() caddy.Module {
|
||||||
|
m := new(NTLMTransport)
|
||||||
|
m.HTTPTransport = new(HTTPTransport)
|
||||||
|
return m
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue