mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-09-11 01:55:28 -05:00
NATNEG: Fix improper packet offset in preinit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user