drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

The request not go with system VPN #59

Open zjhiphop opened 10 years ago

zjhiphop commented 10 years ago

Currently, i try to use grunt-connect-proxy for some third party services, but still have a problem. As you know, facebook is blocked in china, so when i try to use this plugin, i need to do two layer proxies. For example, there is a search service in facebook called fb.com/search?XXX , i want to proxy localhost/fb/search?XX to this service, and i also setted a system VPN so that i can access facebook. And i expect the proxy is like: localhost/fb/search?XX -> fb.com/search?XXX -> VPN to get the result. But actually the connect-proxy always access the network directly without go with the VPN. So my question is there a way i can do with this case? Thanks.