Skip to content

Commit c46f9cf

Browse files
authored
Merge pull request #284 from dxomg/master
Update config.go to add host, and servhost as parameters
2 parents 350c73e + d12557c commit c46f9cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ _for debug purposes (debug level 3 required)_
169169

170170
Author: [gekigek99](https://github.com/gekigek99)
171171

172-
Contributors: [najtin](https://github.com/najtin), [f8ith](https://github.com/f8ith), [Br31zh](https://github.com/Br31zh), [someotherotherguy](https://github.com/someotherotherguy), [navidmafi](https://github.com/navidmafi), [cromefire](https://github.com/cromefire), [andreblanke](https://github.com/andreblanke), [KyleGospo](https://github.com/KyleGospo), [A-wels](https://github.com/A-wels)
172+
Contributors: [najtin](https://github.com/najtin), [f8ith](https://github.com/f8ith), [Br31zh](https://github.com/Br31zh), [someotherotherguy](https://github.com/someotherotherguy), [navidmafi](https://github.com/navidmafi), [cromefire](https://github.com/cromefire), [andreblanke](https://github.com/andreblanke), [KyleGospo](https://github.com/KyleGospo), [A-wels](https://github.com/A-wels), [dxomg](https://github.com/dxomg)
173173

174174
Docker branch (outdated): [lubocode](https://github.com/lubocode/minecraft-server-hibernation)
175175

lib/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ func (c *Configuration) loadRuntime(confdef *Configuration) *errco.MshLog {
191191

192192
flag.IntVar(&c.Msh.Debug, "d", c.Msh.Debug, "Specify debug level.")
193193
// c.Msh.ID should not be set by a flag
194+
flag.StringVar(&MshHost, "host", MshHost, "Specify msh host.")
194195
flag.IntVar(&c.Msh.MshPort, "port", c.Msh.MshPort, "Specify msh port.")
195196
flag.IntVar(&c.Msh.MshPortQuery, "portquery", c.Msh.MshPortQuery, "Specify msh port for queries.")
197+
flag.StringVar(&ServHost, "servhost", ServHost, "Specify the minecraft server host.")
196198
flag.IntVar(&ServPort, "servport", ServPort, "Specify the minecraft server port.")
197199
flag.IntVar(&ServPortQuery, "servportquery", ServPortQuery, "Specify minecraft server port for queries.")
198200
flag.BoolVar(&c.Msh.EnableQuery, "enablequery", c.Msh.EnableQuery, "Enables queries handling.")

0 commit comments

Comments
 (0)