favll / pogom

The fastest Pokémon Go Map available.
MIT License
551 stars 199 forks source link

Send data through a proxy #202

Open Baklap4 opened 8 years ago

Baklap4 commented 8 years ago

Checklist

Is it possible to send data through a proxy so you can "lift" the softban? ...

EiTeR94 commented 8 years ago

You mean like with a VPN?

Baklap4 commented 8 years ago

My vps has a static ip instead of a dynamic one. As for now i think my vps is permanent banned although i still can log in. With a proxy my external ip would change to x.x.x.x where x can ben anywhere between 0 and 255. Therefore "lifting" my soft/permaban

alexanderhektor commented 8 years ago

one proxy for all accounts doesn't help too long (already tested) - proxy support for each account/worker could massively help though.

padinko commented 8 years ago

PGOapi allow using proxy: https://github.com/keyphact/pgoapi/pull/66 can you add this?

compuguy commented 8 years ago

You may be able to set the environmental variable in Linux/Mac OS X, and the python library may use that?

compuguy commented 8 years ago

@alexanderhektor at this point any proxy support would be appreciated. It seems the server and libraries don't properly work with http_proxy and https_proxy variables.

labaland commented 8 years ago

IS it possible to host this map with vpn on? without ngrok? ports are open on router and vpn but no one can connect to the site :/ only local

compuguy commented 8 years ago

I believe it may work with a proxy using environmental variables. I was able to pass them to my docker container. Just need to get a working proxy.

Edit: doesn't seem to work. This error appears:

Error in worker thread. Returning empty response. Error: local variable 'r' referenced before assignment

xzyfer commented 8 years ago

@padinko pgoapi added support for both proxy config and the standard HTTP_PROXY environment variables. The version of pgoapi of this project will need to update updated.

compuguy commented 8 years ago

@xzyfer I agree. What would make it easier if it was pulled in as a dependency, and not having its own local container.

xzyfer commented 8 years ago

@compuguy that's super weird. I expect it's because the author was afraid the repo was get C&D'd and disappear. In which case they could keep a private fork up to date as a fallback.

compuguy commented 8 years ago

So has any progress been done on allowing the use of proxies with pogom?