diff --git a/hysteria/service.go b/hysteria/service.go index 857cc60..b87e5b6 100644 --- a/hysteria/service.go +++ b/hysteria/service.go @@ -200,7 +200,7 @@ func (s *serverSession[U]) handleConnection() { OK: false, Message: "Wrong password", }) - s.closeWithError0(ErrorCodeAuthError, E.Cause(err, "authentication failed, auth_str=", clientHello.Auth)) + s.closeWithError0(ErrorCodeAuthError, E.New("authentication failed, auth_str=", clientHello.Auth)) return } err = WriteServerHello(controlStream, ServerHello{