Release v0.72.0
Added
proxy.Config
struct now contains the newslog.Logger
field which is used as the base logger for proxy service. If nil,slog.Default
is used.upstream.Options
with those you can configure the upstream properties now contain a newslog.Logger
field which is used as the base logger during configuration and parsing processes. If nil,slog.Default
is used.
Changed
proxy.Config.UpstreamMode
which determines the logic for upstreams has been changed, it is now of typeproxy.UpstreamMode
. If not specified theproxy.UpstreamModeLoadBalance
is used.proxy.CheckDisabledAAAARequest
has been deprecated, useproxy.RequestHandler
instead.fastip.NewFastestAddr
which initializes a new instance offastip.FastestAddr
is deprecated, usefastip.New
instead.upstream.NewDefaultHostsResolver
has been changed. Now it requires a non-nilslog.Logger
as an additional argument.
Removed
proxy.UModeLoadBalance
,proxy.UModeParallel
andproxy.UModeFastestAddr
have been removed. Use the new corresponding typeproxy.UpstreamMode
.- Deprecated
proxy.Init
has been removed. - Deprecated
upstream.LookupParallel
has been removed.