fixed decryption key not being 16 bytes long
This commit is contained in:
@@ -16,7 +16,6 @@ import (
|
|||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@@ -432,7 +431,7 @@ func (dml *DemoMatchLoader) handleDemo(demo *Demo, apiKey string, rl *rate.Limit
|
|||||||
|
|
||||||
demo.Url = lastRound.GetMap()
|
demo.Url = lastRound.GetMap()
|
||||||
demo.MatchId = matchZero.GetMatchid()
|
demo.MatchId = matchZero.GetMatchid()
|
||||||
demo.DecryptionKey = []byte(strings.ToUpper(strconv.FormatUint(matchZero.GetWatchablematchinfo().GetClDecryptdataKeyPub(), 16)))
|
demo.DecryptionKey = []byte(strings.ToUpper(fmt.Sprintf("%016x", matchZero.GetWatchablematchinfo().GetClDecryptdataKeyPub())))
|
||||||
|
|
||||||
tMatch, err := dml.db.Match.Create().
|
tMatch, err := dml.db.Match.Create().
|
||||||
SetID(matchZero.GetMatchid()).
|
SetID(matchZero.GetMatchid()).
|
||||||
|
Reference in New Issue
Block a user