Skip to content

Commit ba7c391

Browse files
paul1999g3force
authored andcommitted
Allow specifying address for physical remote control via command line
1 parent f78c4c0 commit ba7c391

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
@@ -16,6 +16,7 @@ import (
1616
var address = flag.String("address", "localhost:8081", "The address on which the UI and API is served")
1717
var autorefAddress = flag.String("autorefAddress", "", "The address on which the Autoref -> GC connection is served")
1818
var teamAddress = flag.String("teamAddress", "", "The address on which the Team -> GC connection is served")
19+
var remoteControlAddress = flag.String("remoteControlAddress", "", "The address on which the remote control connection is served")
1920
var ciAddress = flag.String("ciAddress", "", "The address on which the CI connection is served")
2021
var visionAddress = flag.String("visionAddress", "", "The address (ip+port) from which vision packages are received")
2122
var trackerAddress = flag.String("trackerAddress", "", "The address (ip+port) from which tracker packages are received")
@@ -76,6 +77,9 @@ func setupGameController() {
7677
if teamAddress != nil && *teamAddress != "" {
7778
cfg.Server.Team.Address = *teamAddress
7879
}
80+
if remoteControlAddress != nil && *remoteControlAddress != "" {
81+
cfg.Server.RemoteControl.Address = *remoteControlAddress
82+
}
7983

8084
gameController := gc.NewGameController(cfg)
8185
gameController.SetVerbose(*verbose)

0 commit comments

Comments
 (0)