createWithConfigure(...args)
Forwards proxies to a set of ports based on filter criteria.
If a port is listed, the SDK attempts to forward a proxy that matches the given filter.
If specific filter fields are not provided, values will be randomized.
async createWithConfigure(requestId, ports, n, filterJson)
Parameters
requestId (string) – Correlation ID used to receive success/failure status via events.
ports (Uint32Array) – List of ports to forward.
n (number) – Number of elements in the ports array.
filterJson (string) – JSON string containing filter criteria:
// filterJson criteria
{
"plan": "1",
"city": "Hanoi",
"country": "VN",
"state": "HN",
"isp": "VNPT",
"zip": "100000",
"list_type": -1,
"action": "manual"
}
- plan: plan ID (default "1")
- list_type: always -1 (indicates proxy list)
- action: user action type (default "manual")
- country, city, state, isp, zip: optional; randomized if omitted.
Retun Value
number or array (binding dependent).
Example
// example
const ports = new Uint32Array([11000, 11001]);
const filter = JSON.stringify({
plan: "1",
city: "Hanoi",
country: "VN",
state: "HN",
isp: "VNPT",
zip: "100000",
list_type: -1,
action: "manual"
});
const rc = sdk.createWithConfigure("mgr-1", ports, ports.length, filter);
Last updated
Was this helpful?