pool: added a function to init bufPools

This commit is contained in:
nadoo committed 2020-04-21 12:17:14 +08:00
1 parent 0b0611a0dc
commit b74880ae7a
5 files changed
+26 -30

No files matched your search

+8 -8
View File
@@ -17,13 +17,13 @@ import (
// Config is strategy config struct.
type Config struct {
Strategy string
CheckWebSite string
CheckInterval int
CheckTimeout int
CheckFailedOnly bool
MaxFailures int
IntFace string
Strategy string
CheckWebSite string
CheckInterval int
CheckTimeout int
CheckDisabledOnly bool
MaxFailures int
IntFace string
}
// forwarder slice orderd by priority
@@ -204,7 +204,7 @@ func (p *Proxy) check(f *Forwarder) {
continue
}
if f.Enabled() && p.config.CheckFailedOnly {
if f.Enabled() && p.config.CheckDisabledOnly {
continue
}