brake changes: support dynamic protocols number in ping list handler.
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user