feat(tasks): add proxy support

master
sati.ac 2023-07-25 13:28:46 +03:00
parent 57719018ca
commit 8e6b003486
1 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,7 @@ type TurnstileTask struct {
PageUrl string `json:"pageUrl"`
CData *string `json:"cData,omitempty"`
Action *string `json:"action,omitempty"`
Proxy *string `json:"proxy,omitempty"`
}
func (t *TurnstileTask) serialize() task {
@ -35,6 +36,7 @@ type TurnstileResult struct {
type ReCaptcha2Task struct {
SiteKey string `json:"siteKey"`
PageUrl string `json:"pageUrl"`
Proxy *string `json:"proxy,omitempty"`
}
func (t *ReCaptcha2Task) serialize() task {
@ -57,6 +59,7 @@ type FunCaptchaTask struct {
PageUrl string `json:"pageUrl"`
Data map[string]string `json:"data,omitempty"`
ServiceUrl *string `json:"serviceUrl,omitempty"`
Proxy *string `json:"proxy,omitempty"`
}
func (t *FunCaptchaTask) serialize() task {