Molunerfinn / PicGo

:rocket:A simple & beautiful tool for pictures uploading built by vue-cli-electron-builder
https://molunerfinn.com/PicGo/
MIT License
23.78k stars 2.21k forks source link

[Feature]: 支持socket5 proxy设置 #1136

Open m986883511 opened 1 year ago

m986883511 commented 1 year ago

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

2.4.0 beta1

系统信息 | System Information

Windows

功能请求 | Feature request

支持socket5 proxy设置 我的proxy是,如果填写http://127.0.0.1:1080给picgo是不行的,但是socket5的形式我不会填,不知道支持了没有 image

我的proxy是本地python跑的,这是我跑本地ssr的笔记,我可以在SwitchyOmega设置上图的形式实现代理上网,但是picgo不行

shadowsocks

github: https://github.com/shadowsocks/shadowsocks pypi: https://pypi.org/project/shadowsocks/ about: python pypi ssr

安装

安装[[miniconda#安装]],在conda虚拟环境中安装shadowsocks

conda create -n ssr python=3.8 -y
conda activate ssr
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
pip install shadowsocks==2.8.2

windows

配置文件

New-Item -ItemType Directory -Path $env:USERPROFILE\.ssr -Force
Set-Content -Path "$env:USERPROFILE\.ssr\shadowsocks.json" -Value @'
{
    "server": "jp14.*****.com",
    "server_port": 1409,
    "local_address": "0.0.0.0",
    "local_port": 1080,
    "password": "*****",
    "timeout": 300,
    "method": "*****"
}
'@

启动

进入conda的ssr虚拟环境后

sslocal -c $env:USERPROFILE\.ssr\shadowsocks.json
Molunerfinn commented 1 year ago

sokcet 客户端一般都会提供对应的 HTTP 代理

m986883511 commented 1 year ago

image 并不是所有都支持http代理的,openwrt的schadowssr plus 只有socket5的。

image 这个我写的对吗