brake changes: support dynamic protocols number in ping list handler.

This commit is contained in:
Tnze
2023-01-07 12:05:42 +08:00
parent 4e23ad63a2
commit 2f88446ebc
2 changed files with 20 additions and 10 deletions

View File

@ -73,7 +73,7 @@ func (s *Server) AcceptConn(conn *net.Conn) {
switch intention {
case 1: // list ping
s.acceptListPing(conn)
s.acceptListPing(conn, protocol)
case 2: // login
name, id, profilePubKey, properties, err := s.AcceptLogin(conn, protocol)
if err != nil {