Skip to content

Commit

Permalink
Update config.go to add host, and servhost as parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dxomg authored May 9, 2024
1 parent 350c73e commit 41c1b74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ func (c *Configuration) loadRuntime(confdef *Configuration) *errco.MshLog {

flag.IntVar(&c.Msh.Debug, "d", c.Msh.Debug, "Specify debug level.")
// c.Msh.ID should not be set by a flag
flag.StringVar(&MshHost, "host", MshHost, "Specify msh host.")
flag.IntVar(&c.Msh.MshPort, "port", c.Msh.MshPort, "Specify msh port.")
flag.IntVar(&c.Msh.MshPortQuery, "portquery", c.Msh.MshPortQuery, "Specify msh port for queries.")
flag.StringVar(&ServHost, "servhost", ServHost, "Specify the minecraft server host.")
flag.IntVar(&ServPort, "servport", ServPort, "Specify the minecraft server port.")
flag.IntVar(&ServPortQuery, "servportquery", ServPortQuery, "Specify minecraft server port for queries.")
flag.BoolVar(&c.Msh.EnableQuery, "enablequery", c.Msh.EnableQuery, "Enables queries handling.")
Expand Down

0 comments on commit 41c1b74

Please sign in to comment.