Skip to content

Commit 018e95f

Browse files
andreaswendlerg3force
authored andcommitted
Allow specifying the ci address with the command line
1 parent fc3e5bd commit 018e95f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/ssl-game-controller/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
)
1515

1616
var address = flag.String("address", "localhost:8081", "The address on which the UI and API is served")
17+
var ciAddress = flag.String("ciAddress", "", "The address on which the CI connection is served")
1718
var visionAddress = flag.String("visionAddress", "", "The address (ip+port) from which vision packages are received")
1819
var trackerAddress = flag.String("trackerAddress", "", "The address (ip+port) from which tracker packages are received")
1920
var publishAddress = flag.String("publishAddress", "", "The address (ip+port) to which referee command should be sent")
@@ -53,6 +54,9 @@ func setupGameController() {
5354
if skipInterfaces != nil && *skipInterfaces != "" {
5455
cfg.Network.SkipInterfaces = parseSkipInterfaces()
5556
}
57+
if ciAddress != nil && *ciAddress != "" {
58+
cfg.Server.Ci.Address = *ciAddress
59+
}
5660

5761
gameController := gc.NewGameController(cfg)
5862
gameController.SetVerbose(*verbose)

0 commit comments

Comments
 (0)