mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:08:31 +02:00
cleanup and simplify middleware implementations, refactor some other code
This commit is contained in:
@@ -24,7 +24,7 @@ func (lb *LoadBalancer) newIPHash() impl {
|
||||
return impl
|
||||
}
|
||||
var err E.Error
|
||||
impl.realIP, err = middleware.NewRealIP(lb.Options)
|
||||
impl.realIP, err = middleware.RealIP.New(lb.Options)
|
||||
if err != nil {
|
||||
E.LogError("invalid real_ip options, ignoring", err, &impl.l)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user