summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/config.go b/config.go
index 9a1fcfd..35d465f 100644
--- a/config.go
+++ b/config.go
@@ -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",
+ },
},
}