summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-09-06 13:05:16 +0300
committerWolfy-J <[email protected]>2019-09-06 13:05:16 +0300
commit461db7f19195f70306e41e8920616c53eb00c1f3 (patch)
tree4f54e937e1a3cba255ff3a712cc7b55d6515aed7 /service/http/config.go
parent2ac01468ee745ace3a72742aa97cbd3e51d6dae2 (diff)
- bugfix: proper proxy IP validation + CS
Diffstat (limited to 'service/http/config.go')
-rw-r--r--service/http/config.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/service/http/config.go b/service/http/config.go
index 25be205c..ff15e83e 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -189,14 +189,6 @@ func (c *Config) IsTrusted(ip string) bool {
return false
}
-func (c *Config) IsValid(ip string) bool {
- i := net.ParseIP(ip)
- if i == nil {
- return false
- }
- return true
-}
-
// Valid validates the configuration.
func (c *Config) Valid() error {
if c.Uploads == nil {