Enforce Votifier version

This commit is contained in:
Jacob Gunther 2024-05-19 13:13:29 -05:00
parent 29ed1cb231
commit bf3d6ecb83
No known key found for this signature in database
GPG Key ID: 9E6F3F4BF45EC433

View File

@ -170,6 +170,7 @@ func SendVoteHandler(ctx *fiber.Ctx) error {
defer cancel()
if err = mcutil.SendVote(c, opts.Host, opts.Port, options.Vote{
RequireVersion: 1,
PublicKey: opts.PublicKey,
ServiceName: opts.ServiceName,
Username: opts.Username,
@ -187,6 +188,7 @@ func SendVoteHandler(ctx *fiber.Ctx) error {
defer cancel()
if err = mcutil.SendVote(c, opts.Host, opts.Port, options.Vote{
RequireVersion: 2,
ServiceName: opts.ServiceName,
Username: opts.Username,
Token: opts.Token,