Skip to content

Issue enabling webtrc when using MITM proxy #43

@unofficialapis

Description

@unofficialapis

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)

Image

   plugin.useProxy('', {
	  changeWebRTC: 'enable',
	  changeGeolocation: true,
	  ipInfoMethod: 'ip-api.com',
	});

Becomes disabled. (greyed out)
Image

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



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions