Minecraft wiki entry for Development_versions, associated text: Handshake packet padding method for "hostname" and "port" field has reverted to pre-1.17 when the server address which used is a SRV record.
Now, data padded in these field will use the address and port which SRV record pointed at, instead of using "server address" as "hostname" and 25565 as "port".