Skip to content

Commit da2e8b1

Browse files
committed
modify test for X-REAL-IP
1 parent 2aa5338 commit da2e8b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scoreboard/scoreboard_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,13 @@ func TestScoreboard(*testing.T) {
436436
}
437437

438438
ScoreboardRecalcTimeout = time.Second / 10
439+
440+
proxy := false
439441

440442
go func() {
441443
_, filename, _, _ := runtime.Caller(0)
442444
err = Scoreboard(database, &game, filepath.Dir(filename)+"/www",
443-
filepath.Dir(filename)+"/templates", addr)
445+
filepath.Dir(filename)+"/templates", addr, proxy)
444446
if err != nil {
445447
panic(err)
446448
}

0 commit comments

Comments
 (0)