Skip to content

Commit 66288fd

Browse files
committed
Provide option to not verify hashes
1 parent bdd5b1b commit 66288fd

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

common/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ type Config struct {
4848

4949
AllowMultipleCsnums string `xml:"allowMultipleCsnums"`
5050

51+
EnableHashCheck bool `xml:"enableHashCheck"`
52+
5153
ServerName string `xml:"serverName,omitempty"`
5254
}
5355

config_example.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
-->
5555
<allowMultipleCsnums>SameIPAddress</allowMultipleCsnums>
5656

57+
<!-- Require hashes to be submitted to log in -->
58+
<enableHashCheck>true</enableHashCheck>
59+
5760
<!-- Database Credentials -->
5861
<username>username</username>
5962
<password>password</password>

gpcm/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (g *GameSpySession) login(command common.GameSpyCommand) {
197197
}
198198
}
199199

200-
if g.GameName == "mariokartwii" {
200+
if g.GameName == "mariokartwii" && common.GetConfig().EnableHashCheck {
201201
packIDStr, exists := command.OtherValues["pack_id"]
202202
if exists {
203203
logging.Info(g.ModuleName, "pack_id:", aurora.Cyan(packIDStr))

0 commit comments

Comments
 (0)