Skip to content

Commit 1c01d2d

Browse files
authored
Fix hysteria1 server panic if authentiation fails
1 parent 297f0b2 commit 1c01d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hysteria/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (s *serverSession[U]) handleConnection() {
200200
OK: false,
201201
Message: "Wrong password",
202202
})
203-
s.closeWithError0(ErrorCodeAuthError, E.Cause(err, "authentication failed, auth_str=", clientHello.Auth))
203+
s.closeWithError0(ErrorCodeAuthError, E.New("authentication failed, auth_str=", clientHello.Auth))
204204
return
205205
}
206206
err = WriteServerHello(controlStream, ServerHello{

0 commit comments

Comments
 (0)