-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Hey,
I'm trying to put a mitm proxy as my proxy argument; however when I do this, my webrtc gets disabled.
Testing on https://proxy.incolumitas.com/proxy_detect.html
Here is the code im running:
const { plugin } = require('browser-with-fingerprints');
const { readFile, writeFile } = require('fs/promises');
async function main() {
// Set the service key for the plugin (you can buy it here https://bablosoft.com/directbuy/FingerprintSwitcher/2).
// Leave an empty string to use the free version.
plugin.setServiceKey('');
const fingerprint = await plugin.fetch({
tags: ['Microsoft Windows', 'Chrome'],
minBrowserVersion: 133,
timeLimit: '15 days',
});
fingerprintOptions = {
}
plugin.useFingerprint(fingerprint, fingerprintOptions);
plugin.useProfile("",{loadProxy: true});
plugin.useProxy('127.0.0.1:8080', {
changeWebRTC: 'enable',
changeGeolocation: true,
ipInfoMethod: 'ip-api.com',
});
var debuggingPort_ = 9222;
const chrome = await plugin.spawn({ headless: false, debuggingPort: debuggingPort_ });
}
main();
Running this runs through the proxy, but for some reason its disabling the webrtc, I dont want it to modify the webrtc since its already on the same ip. If I remove the mitm proxy, the webrtc works as it should.
So when the code reads, webrtc & udp is enabled (green no proxy, being detected)
plugin.useProxy('', {
changeWebRTC: 'enable',
changeGeolocation: true,
ipInfoMethod: 'ip-api.com',
});
Becomes disabled. (greyed out)

plugin.useProxy('127.0.0.1:8080', {
changeWebRTC: 'enable',
changeGeolocation: true,
ipInfoMethod: 'ip-api.com',
});
Metadata
Metadata
Assignees
Labels
No labels
