Skip to content

【bug】http_proxy 允许所有 IP 访问 #97

@RexWzh

Description

@RexWzh

复现过程:

# 添加节点,并设置序号为 0
shadowsocksr-cli --add-ssr ssr://xxxx
# 测试节点
shadowsocksr-cli --test-again 0
# 允许所有 IP 访问
shadowsocksr-cli --setting-address 0.0.0.0
# 用默认端口启动 socks5
shadowsocksr-cli -s 0
# 启动 http
shadowsocksr-cli --http-proxy start --http-proxy-port 7890

经过上边配置:

  1. socks5://localhost:1080http://localhost:7890 能使用代理
  2. socks5://局域网IP:1080 能使用
  3. http://局域网ip:7890 不能使用
export all_proxy=http://172.23.148.35:7890
❯ ipinfo
curl: (7) Failed to connect to 172.23.148.35 port 7890: Connection refused
❯ lsof -i:7890
COMMAND     PID    USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
shadowsoc 13311 zhihong    6u  IPv4 1216689873      0t0  TCP localhost:7890 (LISTEN)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions