Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
typhoon authored and typhoon committed Aug 19, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7c15153 commit d3337f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/pipelines/http/net-http/proxy.go
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/sirupsen/logrus"
"github.com/vortex14/gotyphoon/log"
"net/http"
"net/url"

@@ -122,6 +123,10 @@ func ConstructorProxyRequestSettingsMiddleware(required bool) interfaces.Middlew
} else if proxyURL.Host == "" || proxyURL.Port() == "" {
reject(Errors.ProxyTaskNotFound)
}

context = log.PatchCtx(context, map[string]interface{}{"proxy": task.GetProxyAddress()})
next(context)

},
}
}

0 comments on commit d3337f1

Please sign in to comment.