mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-09-30 11:06:34 -05:00
NATNEG: Fix inversed condition
This commit is contained in:
@@ -57,7 +57,7 @@ func StartServer() {
|
||||
|
||||
func handleConnection(conn net.PacketConn, addr net.Addr, buffer []byte) {
|
||||
// Validate the packet magic
|
||||
if bytes.Equal(buffer[:6], []byte{0xfd, 0xfc, 0x1e, 0x66, 0x6a, 0xb2}) {
|
||||
if !bytes.Equal(buffer[:6], []byte{0xfd, 0xfc, 0x1e, 0x66, 0x6a, 0xb2}) {
|
||||
logging.Error("NATNEG:"+addr.String(), "Invalid packet header")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user