From 41c1b746de4559e29c33dfc623ddf30d164a4212 Mon Sep 17 00:00:00 2001 From: dxomg <101947415+dxomg@users.noreply.github.com> Date: Wed, 8 May 2024 22:49:15 -0600 Subject: [PATCH] Update config.go to add host, and servhost as parameters --- lib/config/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/config/config.go b/lib/config/config.go index 67c245f..249ea2b 100644 --- a/lib/config/config.go +++ b/lib/config/config.go @@ -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.")