unjs / untun

🚇 Tunnel your local HTTP(s) server to the world! powered by Cloudflare Quick Tunnels.
Other
946 stars 14 forks source link

🙏 Cannot install binary from github #4

Closed gyhyfj closed 10 months ago

gyhyfj commented 10 months ago

Environment

Reproduction

Exec npx untun@latest tunnel http://localhost:3001 , then throw error:

 Starting cloudflared tunnel to http://localhost:3000                                    09:58:29
                                                                                          09:58:29
🔥 Your installation of cloudflared software constitutes a symbol of your signature
   indicating that you accept the terms of the Cloudflare License, Terms and Privacy Policy.

❯ License:         https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/license/
❯ Terms:           https://www.cloudflare.com/terms/
❯ Privacy Policy:  https://www.cloudflare.com/privacypolicy/

✔ Do you agree with the above terms and wish to install the binary from GitHub?
Yes

 ERROR  connect ECONNREFUSED 127.0.0.1:443                                                09:58:29

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)

 ERROR  connect ECONNREFUSED 127.0.0.1:443                                                09:58:29

My area is China, so I wonder if it's related to the network. However, the results are the same regardless of whether I use VPN or not. I'm sure it would be a very common problem to Chinese developer if it's caused by network, so should I use a mirror like what electorn does, or some other way to resolve it? 🙏

Describe the bug

Cannot install binary from github (in China)

Additional context

No response

Logs

Starting cloudflared tunnel to http://localhost:3000                                    09:58:29
                                                                                          09:58:29
🔥 Your installation of cloudflared software constitutes a symbol of your signature
   indicating that you accept the terms of the Cloudflare License, Terms and Privacy Policy.

❯ License:         https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/license/
❯ Terms:           https://www.cloudflare.com/terms/
❯ Privacy Policy:  https://www.cloudflare.com/privacypolicy/

✔ Do you agree with the above terms and wish to install the binary from GitHub?
Yes

 ERROR  connect ECONNREFUSED 127.0.0.1:443                                                09:58:29

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)

 ERROR  connect ECONNREFUSED 127.0.0.1:443                                                09:58:29
gyhyfj commented 10 months ago

Sorry, It's problem of my github proxy, deleting host file in C:\Windows\System32\drivers\etc could resolve this porblem.