Skip to content

Commit f78c4c0

Browse files
paul1999g3force
authored andcommitted
Allow specifying the Team->GC and Autoref->GC addresses via command line
1 parent 5ba0e62 commit f78c4c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmd/ssl-game-controller/main.go

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

1616
var address = flag.String("address", "localhost:8081", "The address on which the UI and API is served")
17+
var autorefAddress = flag.String("autorefAddress", "", "The address on which the Autoref -> GC connection is served")
18+
var teamAddress = flag.String("teamAddress", "", "The address on which the Team -> GC connection is served")
1719
var ciAddress = flag.String("ciAddress", "", "The address on which the CI connection is served")
1820
var visionAddress = flag.String("visionAddress", "", "The address (ip+port) from which vision packages are received")
1921
var trackerAddress = flag.String("trackerAddress", "", "The address (ip+port) from which tracker packages are received")
@@ -68,6 +70,12 @@ func setupGameController() {
6870
if ciAddress != nil && *ciAddress != "" {
6971
cfg.Server.Ci.Address = *ciAddress
7072
}
73+
if autorefAddress != nil && *autorefAddress != "" {
74+
cfg.Server.AutoRef.Address = *autorefAddress
75+
}
76+
if teamAddress != nil && *teamAddress != "" {
77+
cfg.Server.Team.Address = *teamAddress
78+
}
7179

7280
gameController := gc.NewGameController(cfg)
7381
gameController.SetVerbose(*verbose)

0 commit comments

Comments
 (0)