diff options
Diffstat (limited to 'internal/config/config.go')
| -rw-r--r-- | internal/config/config.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index ff8d452..ec4ea67 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -83,7 +83,8 @@ func (conf Config) NodeNumber(node string) int { return nodeNumber } - log.Println("config:", fmt.Errorf("node %s not found - it will affect it's score!", node)) + log.Println("config:", + fmt.Errorf("node %s not found - it will affect it's score!", node)) return 0 } @@ -99,7 +100,9 @@ func (conf Config) IsNode(remoteAddr string) bool { return false } -func (conf Config) IsNodeWithLookup(remoteAddr string, lookupIP func(string) ([]net.IP, error)) bool { +func (conf Config) IsNodeWithLookup(remoteAddr string, + lookupIP func(string) ([]net.IP, error)) bool { + remoteAddr = utils.StripPort(remoteAddr) for _, node := range conf.Nodes { |
