TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

H2tunnel – ngrok alternative for Node.js in 600 LOC and no dependencies

45 点作者 boronine7 个月前

3 条评论

boronine7 个月前
I was able to keep my code small by leveraging existing protocols: TLS for authentication and HTTP2 for multiplexing, stuffing simultaneous HTTP1 requests onto a single TLS-encrypted tunnel socket.<p>Hopefully I&#x27;ll make it on the hall of fame [1] :)<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;anderspitman&#x2F;awesome-tunneling">https:&#x2F;&#x2F;github.com&#x2F;anderspitman&#x2F;awesome-tunneling</a>
anshumankmr7 个月前
Awesome. My company had blocked Ngrok, will try this out when I am back from my leave.
评论 #41867719 未加载
评论 #41867663 未加载
评论 #41868385 未加载
评论 #41867606 未加载
throwaway2016a7 个月前
Clearly a lot of work went into this so kudos for that.<p>I do think it missing the point a tiny bit though. For me the primary use of Ngrok is to automatically get sub a domain with TLS and this seems to be outsourcing that to Caddy. And also I need to run a server. If I was going to run a server and run caddy I&#x27;d probably just use SSH -L directly.<p>Also SSH -L is a TCP&#x2F;IP level tunnel so I&#x27;m missing something regarding why the HTTP&#x2F;2 multiplexing is necessary vs just using the tunnel as is.
评论 #41874415 未加载