diff options
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -14,10 +14,11 @@ type conf struct { } type serverConf struct { - Host string `toml:"host"` - Unix bool `toml:"unix"` - Port uint16 `toml:"port"` - Proxy bool `toml:"proxy"` + Host string `toml:"host"` + Unix bool `toml:"unix"` + Port uint16 `toml:"port"` + Proxy bool `toml:"proxy"` + TrustedProxies []string `toml:"trusted_proxies"` } type systemConf struct { @@ -79,5 +80,10 @@ var defConf = conf{ Unix: false, Port: 7777, Proxy: true, + TrustedProxies: []string{ + "10.0.0.0/8", + "172.16.0.0/12", + "192.168.0.0/16", + }, }, } |