mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:08:31 +02:00
refactor(agent): move agent pool to agent package, rename route.Agent() to route.GetAgent()
This commit is contained in:
@@ -39,7 +39,7 @@ func NewReverseProxyRoute(base *Route) (*ReveseProxyRoute, gperr.Error) {
|
||||
proxyURL := base.ProxyURL
|
||||
|
||||
var trans *http.Transport
|
||||
a := base.Agent()
|
||||
a := base.GetAgent()
|
||||
if a != nil {
|
||||
trans = a.Transport()
|
||||
proxyURL = nettypes.NewURL(agent.HTTPProxyURL)
|
||||
|
||||
Reference in New Issue
Block a user