feat(tasks): add proxy support
This commit is contained in:
		
							
								
								
									
										7
									
								
								tasks.go
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								tasks.go
									
									
									
									
									
								
							@ -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 {
 | 
			
		||||
@ -33,8 +34,9 @@ type TurnstileResult struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type ReCaptcha2Task struct {
 | 
			
		||||
	SiteKey string `json:"siteKey"`
 | 
			
		||||
	PageUrl string `json:"pageUrl"`
 | 
			
		||||
	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 {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user