Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
m986883511 opened this issue Jun 6, 2023 · 2 comments
Open
3 tasks done

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

m986883511 opened this issue Jun 6, 2023 · 2 comments
Assignees

Comments

@m986883511
Copy link

前置阅读 | 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
Copy link
Owner

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

@m986883511
Copy link
Author

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

image
这个我写的对吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants