如何解决仅 yesod ipv6 问题?

发布于 2024-12-18 08:19:35 字数 324 浏览 5 评论 0原文

yesod 存在一个未解决的问题,它仅侦听 ipv6。< br> 我正在遵循 yesod 五分钟指南,并在运行“yesod devel”时遇到此问题。我现在该如何修复它并启动并运行以尝试该框架?我尝试编辑 myapp/dist/devel.hs 以使用 Warp 的 runSettings 和 ipv4 地址集而不是默认运行,但再次运行“yesod devel”只是覆盖了 myapp/dist/devel.hs 文件。

There's an outstanding issue with yesod where it only listens on ipv6.
I am following the yesod in five minutes guide and have this issue when running "yesod devel". How can I fix it for now and get up and running to try the framework out? I tried editing the myapp/dist/devel.hs to use Warp's runSettings with an ipv4 address set instead of the default run, but running "yesod devel" again just over wrote the myapp/dist/devel.hs file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾城泪 2024-12-25 08:19:35

在我的 freebsd 机器上,我只需运行 #sysctl -w net.inet6.ip6.v6only=0,然后它就可以工作了!

On my freebsd box, i just run #sysctl -w net.inet6.ip6.v6only=0, then it works !

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文