mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
NATNEG: Fix improper packet offset in preinit
This commit is contained in:
parent
09ff4c88ce
commit
b691161788
|
|
@ -37,7 +37,7 @@ func (session *NATNEGSession) handlePreinit(conn net.PacketConn, addr net.Addr,
|
|||
// Hopefully just returning "ready" will cause the games to continue with NATNEG as normal.
|
||||
|
||||
packet := createPacketHeader(version, NNPreInitReply, session.Cookie)
|
||||
buffer[1] = NNPreInitReady
|
||||
packet = append(packet, buffer[:6]...)
|
||||
packet[1] = NNPreInitReady
|
||||
conn.WriteTo(packet, addr)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user