np-maintain / global-tunnel

Global HTTP & HTTPS tunelling agent - hard fork of https://github.com/SalesforceEng/global-tunnel
BSD 3-Clause "New" or "Revised" License
118 stars 20 forks source link

Proxy tunnel not working. #62

Open learnacadman opened 1 year ago

learnacadman commented 1 year ago

Here's my code:

const tunnel = require('global-tunnel-ng');

tunnel.initialize({
  host: 'proxy_host',
  port: proxy_port
});

fetch('https://api.myip.com')
      .then(response => response.json())
      .then(json => console.log(json))

It still logs my own IP address instead of the proxy one. I tried multiple proxy servers.