Skip to content

Commit

Permalink
Merge pull request #284 from dxomg/master
Browse files Browse the repository at this point in the history
Update config.go to add host, and servhost as parameters
  • Loading branch information
gekigek99 authored Jul 25, 2024
2 parents 350c73e + d12557c commit c46f9cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ _for debug purposes (debug level 3 required)_

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

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)
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)

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

Expand Down
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 c46f9cf

Please sign in to comment.