Enforce Votifier version
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user