Add address to the conf file

This commit is contained in:
Henrique Dias
2017-07-26 11:28:47 +01:00
parent 0fc30ab1b6
commit a521812e3e
2 changed files with 3 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ import (
type confFile struct {
Database string `json:"database"`
Scope string `json:"scope"`
Address string `json:"address"`
Commands []string `json:"commands"`
Port int `json:"port"`
AllowCommands bool `json:"allowCommands"`
@@ -99,6 +100,7 @@ func loadConfig() {
database = conf.Database
scope = conf.Scope
addr = conf.Address
commands = strings.Join(conf.Commands, " ")
port = strconv.Itoa(conf.Port)
allowNew = conf.AllowNew