Merge pull request 'fix: add nil check in Forwarder.Close to avoid panic (issue #36)' (#37) from staging into main
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 4m9s
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 4m9s
Reviewed-on: #37
This commit is contained in:
@ -171,7 +171,7 @@ func (f *Forwarder) WriteBadGatewayResponse(dst io.Writer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *Forwarder) Close() error {
|
func (f *Forwarder) Close() error {
|
||||||
if f.GetTunnelType() != types.HTTP {
|
if f.GetListener() != nil {
|
||||||
return f.Listener.Close()
|
return f.Listener.Close()
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user