Closed queensferryme closed 3 years ago
proxychains4 works well on my computer, please check your network
Related issues: https://github.com/rofl0r/proxychains-ng/issues/199
As mentioned by the author of proxychains-ng
:
proxychains hooks to dynamically loaded libc.
- go doesn't even use libc, it uses its own syscall wrappers
- go doesn't use dynamic linking, it uses static linking
so there's no way we could use this technique with go. the only way to hook into go binaries would be by using ptrace to hook the system calls themselves, which is hairy and platform-dependent - i.e. it means it would be a lot more work to produce and maintain. so i fear it is out of scope for this utility.
A possible alternative would be using graftcp.
Golang does not use libc, so proxychains-ng
won't work. Turns out the solution is actually simple: set env vars like HTTP_PROXY
and HTTPS_PROXY
etc.
I import the official hugo example site (https://github.com/gohugoio/hugoBasicExample) for testing this theme. However,
content/post/rich-content.md
result in an issue, presumably related to networking.This file contains hugo
shortcode
s for instagram, twitter etc., and these services are sofar unaccessible from China mainland.Using proxies (with
proxychains4
) doesn't help on my computer. Hence, this filecontent/post/rich-content.md
is temporarily removed fromexampleSite
, waiting for future resolvement.