Skip to content

Commit

Permalink
Add port flag to example allocator-client
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieheywood committed Jun 7, 2020
1 parent 2486f54 commit ca50303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/allocator-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ func main() {
certFile := flag.String("cert", "missing cert", "the public key file for the client certificate in PEM format")
cacertFile := flag.String("cacert", "missing cacert", "the CA cert file for server signing certificate in PEM format")
externalIP := flag.String("ip", "missing external IP", "the external IP for allocator server")
port := flag.String("port", "443", "the port for allocator server")
namespace := flag.String("namespace", "default", "the game server kubernetes namespace")
multicluster := flag.Bool("multicluster", false, "set to true to enable the multi-cluster allocation")

flag.Parse()

endpoint := *externalIP + ":443"
endpoint := *externalIP + ":" + *port
cert, err := ioutil.ReadFile(*certFile)
if err != nil {
panic(err)
Expand Down

0 comments on commit ca50303

Please sign in to comment.