Update quic bad error list

This commit is contained in:
世界 2023-12-08 14:54:42 +08:00
parent 0d701cfff0
commit 5a3d0edd1c
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -55,7 +55,10 @@ func WrapQUIC(err error) error {
if err == nil {
return nil
}
if Contains(err, "canceled by local with error code 0") {
if Contains(err,
"canceled by remote with error code 0",
"canceled by local with error code 0",
) {
return net.ErrClosed
}
return err