Skip to content

Commit

Permalink
Merge pull request #20 from vortex14/proxy-server
Browse files Browse the repository at this point in the history
update
  • Loading branch information
vortex14 authored Aug 9, 2022
2 parents 9120215 + a1205d6 commit 2672815
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/pipelines/http/net-http/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ func CreateProxyRequestPipeline(opts *forms.Options) *HttpRequestPipeline {
task interfaces.TaskInterface,
logger interfaces.LoggerInterface) {

if task.GetSaveData("SKIP_CN") == "skip" {
return
}

// Block current proxy
proxy := task.GetProxyAddress()
logger.Error("block proxy: %s", proxy)
Expand Down
1 change: 1 addition & 0 deletions extensions/servers/gin/domains/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func (c *Collection) MakeRequestThroughProxy(proxy string, group *sync.WaitGroup

taskTest.SetFetcherUrl(c.Settings.CheckHosts[0])
taskTest.SetProxyAddress(proxy)
taskTest.SetSaveData("SKIP_CN", "skip")

ctxGroup := Task.NewTaskCtx(taskTest)

Expand Down

0 comments on commit 2672815

Please sign in to comment.