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

Linux 代理工具无法使用 #44

Open
chiyuki0325 opened this issue Jul 2, 2022 · 1 comment
Open

Linux 代理工具无法使用 #44

chiyuki0325 opened this issue Jul 2, 2022 · 1 comment

Comments

@chiyuki0325
Copy link

系统:Arch Linux (内核版本 5.18.6,gcc 12.1.0)
微信使用 deepin-wine 运行,无论使用 http_proxy https_proxy 环境变量,还是 proxychains 工具,又或是微信的代理设置,均无法连接,打开公众号后是舞萌首页,并且代理程序出现 go 报错信息。

图片

@WhitePr
Copy link

WhitePr commented Apr 1, 2023

Termux上也有这个问题 不过无法打开网页
这是log

2023/04/01 17:02:51 http: panic serving 127.0.0.1:41688: runtime error: index out of range [0] with length 0
goroutine 22 [running]:
net/http.(*conn).serve.func1()
/data/data/com.termux/files/usr/lib/go/src/net/http/server.go:1854 +0xb0
panic({0x5936279340, 0x400001a318})
/data/data/com.termux/files/usr/lib/go/src/runtime/panic.go:890 +0x248
github.com/elazarl/goproxy.signHost({{0x0, 0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...)
/data/data/com.termux/files/home/go/pkg/mod/github.com/elazarl/[email protected]/signer.go:44 +0x8b8
github.com/elazarl/goproxy.TLSConfigFromCA.func1.1(...)
/data/data/com.termux/files/home/go/pkg/mod/github.com/elazarl/[email protected]/https.go:434
github.com/elazarl/goproxy.TLSConfigFromCA.func1({0x4000020687, 0x17}, 0x400007aba0)
/data/data/com.termux/files/home/go/pkg/mod/github.com/elazarl/[email protected]/https.go:439 +0x208
github.com/elazarl/goproxy.(*ProxyHttpServer).handleHttps(0x4000111180, {0x5936298d80?, 0x400014c2a0}, 0x40000c2300)
/data/data/com.termux/files/home/go/pkg/mod/github.com/elazarl/[email protected]/https.go:184 +0x3d8
github.com/elazarl/goproxy.(*ProxyHttpServer).ServeHTTP(0x0?, {0x5936298d80?, 0x400014c2a0?}, 0x59361c5038?)
/data/data/com.termux/files/home/go/pkg/mod/github.com/elazarl/[email protected]/proxy.go:114 +0xb0
net/http.serverHandler.ServeHTTP({0x400032d8f0?}, {0x5936298d80, 0x400014c2a0}, 0x40000c2300)
/data/data/com.termux/files/usr/lib/go/src/net/http/server.go:2936 +0x2c0
net/http.(*conn).serve(0x4000370120, {0x5936298fa8, 0x400007fb60})
/data/data/com.termux/files/usr/lib/go/src/net/http/server.go:1995 +0x518
created by net/http.(*Server).Serve
/data/data/com.termux/files/usr/lib/go/src/net/http/server.go:3089 +0x4e8

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

No branches or pull requests

2 participants