config updated
added config option for max connections per IP
This commit is contained in:
parent
d907c2c7e5
commit
5c855bb1c9
|
@ -1,3 +1,4 @@
|
|||
server:
|
||||
host: "127.0.0.1"
|
||||
port: 11235
|
||||
maxconns: 2
|
|
@ -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 {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue