Skip to content

Commit

Permalink
Set status handshake protocol to -1
Browse files Browse the repository at this point in the history
See https://wiki.vg/Server_List_Ping#Handshake

"If the client is pinging to determine what version to use, by convention -1 should be set."
  • Loading branch information
fabianwennink committed Jan 7, 2024
1 parent 0cf8aaa commit 70a888e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion status.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
defaultJavaStatusOptions = options.JavaStatus{
EnableSRV: true,
Timeout: time.Second * 5,
ProtocolVersion: 47,
ProtocolVersion: -1,
}
)

Expand Down

0 comments on commit 70a888e

Please sign in to comment.