mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 12:46:05 +01:00
Use correct padding for UDP queries
This commit is contained in:
parent
52bf6184c7
commit
720f5df2f4
@ -98,7 +98,10 @@ public class QueryHandler extends SimpleChannelInboundHandler<DatagramPacket>
|
||||
} else if ( in.readableBytes() == 4 )
|
||||
{
|
||||
// Long Response
|
||||
out.writeBytes( new byte[ 11 ] );
|
||||
out.writeBytes( new byte[]
|
||||
{
|
||||
0x73, 0x70, 0x6C, 0x69, 0x74, 0x6E, 0x75, 0x6D, 0x00, (byte) 0x80, 0x00
|
||||
} );
|
||||
Map<String, String> data = new LinkedHashMap<>();
|
||||
|
||||
data.put( "hostname", listener.getMotd() );
|
||||
|
Loading…
Reference in New Issue
Block a user