You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
另一种实现方法更为简单,直接自己使用请求库(如Axios、Superagent、ruquest等)进行请求,并直接返回
const request = require('request'),
module.exports = {
summary: 'a rule to inject proxy',
beforeSendRequest (requestDetail) {
// 要访问的目标地址
let url = requestDetail.url
let method = requestDetail.requestOptions.method
// 代理服务器ip和端口
let proxy_ip = '47.115.36.94';
let proxy_port = 16816;
// 完整代理服务器url
let proxy = util.format('http://%s:%d', proxy_ip, proxy_port);
Hello, for example, i have few proxies:
And i have anyProxy server on 127.0.0.1:5050
I want do something like:
Request come to 127.0.0.1:5050 then i'll get random proxy from my proxy list, then anyProxy request with that proxy.
How i can implement that?
The text was updated successfully, but these errors were encountered: