feat: add option for delaying task get requests
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				release-tag / release (push) Successful in 2m3s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	release-tag / release (push) Successful in 2m3s
				
			This commit is contained in:
		@ -16,6 +16,8 @@ type Config struct {
 | 
			
		||||
	TlsKeyPath   string            `json:"tlsKeyPath"`
 | 
			
		||||
	Host         string            `json:"host"`
 | 
			
		||||
	TlsHost      string            `json:"tlsHost"`
 | 
			
		||||
	TaskLifetime int64             `json:"taskLifetime"`
 | 
			
		||||
	TaskGetDelay int64             `json:"taskGetDelay"`
 | 
			
		||||
	AntiGateV2   struct {
 | 
			
		||||
		TurnstileUserAgent string `json:"turnstileUserAgent"`
 | 
			
		||||
		Ip                 string `json:"ip"`
 | 
			
		||||
@ -32,6 +34,8 @@ func Default() *Config {
 | 
			
		||||
		TlsKeyPath:   "./data/ca.key",
 | 
			
		||||
		Host:         "127.0.0.1:80",
 | 
			
		||||
		TlsHost:      "127.0.0.1:443",
 | 
			
		||||
		TaskLifetime: 60000,
 | 
			
		||||
		TaskGetDelay: 0,
 | 
			
		||||
		AntiGateV2: struct {
 | 
			
		||||
			TurnstileUserAgent string `json:"turnstileUserAgent"`
 | 
			
		||||
			Ip                 string `json:"ip"`
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user