File tree Expand file tree Collapse file tree 3 files changed +10
-15
lines changed
Expand file tree Collapse file tree 3 files changed +10
-15
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2828 "server" : "broker" ,
2929 "criteria" : {
3030 "anonymous" : True ,
31- # "secure": True,
31+ "secure" : True ,
3232 "countryset" : {"IT" },
33- "timeout" : 5 .0 ,
34- "max_shape" : 2
33+ "timeout" : 10 .0 ,
34+ "max_shape" : 3
3535 },
3636 },
3737 }
Original file line number Diff line number Diff line change @@ -161,7 +161,13 @@ def _search_proxy(proxy: Proxy) -> ProxySettings:
161161 Returns:
162162 A 'playwright' compliant proxy configuration.
163163 """
164- server = search_proxy_servers (** proxy .get ("criteria" , {}))[0 ]
164+
165+
166+ # remove max_shape from criteria
167+ criteria = proxy .get ("criteria" , {}).copy ()
168+ criteria .pop ("max_shape" , None )
169+
170+ server = search_proxy_servers (max_shape = 1 , ** criteria )[0 ]
165171
166172 return {"server" : server }
167173
You can’t perform that action at this time.
0 commit comments