Change protocol version for modern Java servers

This commit is contained in:
Jacob Gunther
2024-09-14 21:42:37 -05:00
parent 4fc00f570a
commit 5d36a3d69c

View File

@@ -331,7 +331,7 @@ func FetchJavaStatus(hostname string, port uint16, opts *StatusOptions) (*JavaSt
statusResult, _ = status.Modern(statusContext, hostname, port, options.StatusModern{
EnableSRV: true,
Timeout: opts.Timeout - time.Millisecond*100,
ProtocolVersion: -1,
ProtocolVersion: 47,
Ping: true,
})