test
This commit is contained in:
parent
c26b73c9a9
commit
61c5f6944a
@ -95,6 +95,7 @@ func (p *PacketAdminJoin) Bytes() []byte {
|
||||
}
|
||||
|
||||
func (p *PacketAdminServerWelcome) Read(b []byte) {
|
||||
|
||||
r := bufio.NewReader(bytes.NewReader(b))
|
||||
p.ServerName, _ = r.ReadString(0)
|
||||
p.OpenTTDVersion, _ = r.ReadString(0)
|
||||
@ -120,11 +121,12 @@ func handlePacket(p Packet, b []byte) {
|
||||
switch p.PType {
|
||||
case AdminPacketServerProtocol:
|
||||
case AdminPacketServerWelcome:
|
||||
logInfoDebug("AdminPacketServerWelcome Raw : %v", b)
|
||||
sp := PacketAdminServerWelcome{
|
||||
Packet: p,
|
||||
}
|
||||
sp.Read(b)
|
||||
logInfoDebug("AdminPacketServerWelcome : %v", sp)
|
||||
logInfoDebug("AdminPacketServerWelcome Val : %v", sp)
|
||||
default:
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user