yamin8000 / InstaCLI

InstaCLI is a CLI client for 📷 Instagram.
GNU General Public License v3.0
16 stars 3 forks source link

Support proxy #26

Open xmha97 opened 1 year ago

xmha97 commented 1 year ago

Hi, Thanks for creating this tool. Instagram is blocked in my country. Please add proxy settings. (SOCKS5/HTTP(S) proxy)

yamin8000 commented 1 year ago

Hi, Thanks for creating this tool. Instagram is blocked in my country. Please add proxy settings. (SOCKS5/HTTP(S) proxy)

This can be added too.
Proxy support is bound to OkHttp in this app because the underlying library is using OkHttp, which is using Java's Proxy class that only supports HTTP and SOCKS V4 or V5, I'm not sure about HTTPS.
Adding proxy support looks trivial and only needs configuring OkHttp's client but I have to provide settings for adding proxies in the app's settings.

xmha97 commented 1 year ago

من وی‌پی‌ان ندارم و با پروکسی وصل میشم. و به نظر می‌رسه جاوا از پروکسی پیش‌فرض سیستم استفاده نمی‌کنه. خلاصه این که فکر می‌کنم اضافه کردن پروکسی کمک‌کننده است.