config updated

added config option for max connections per IP
This commit is contained in:
Justin T 2019-12-03 21:12:36 -06:00
parent d907c2c7e5
commit 5c855bb1c9
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,4 @@
server:
host: "127.0.0.1"
port: 11235
port: 11235
maxconns: 2

View File

@ -8,8 +8,9 @@ import (
type Config struct {
Server struct {
Host string `yaml:"host"`
Port int16 `yaml:"port"`
Host string `yaml:"host"`
Port int16 `yaml:"port"`
MaxConns int `yaml:"maxconns"`
}
Database struct {
}