diff --git a/config.yml b/config.yml index 374ade4..dc8bd54 100644 --- a/config.yml +++ b/config.yml @@ -1,3 +1,4 @@ server: host: "127.0.0.1" - port: 11235 \ No newline at end of file + port: 11235 + maxconns: 2 \ No newline at end of file diff --git a/habbgo/utils/config.go b/habbgo/utils/config.go index 399383b..83e1623 100644 --- a/habbgo/utils/config.go +++ b/habbgo/utils/config.go @@ -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 { }