问HN:Mac上的mDNS被锁定了吗?
我正在使用一个很酷的工具,叫做 localias,它允许你为在 Mac 上运行的服务设置带有 https 的 `.local` 域名。能够在同一地址访问网络上的服务非常有帮助(尤其是对于移动开发)。例如:
`localias add frontend.local 5173` # 你现在可以访问 `https://frontend.local`,它将解析到你本地监听在 5173 端口的服务。
但似乎苹果将 mDNS 功能锁定在了付费墙后面?
[GitHub 链接](https://github.com/peterldowns/localias/issues/40#issuecomment-2630197849)
[苹果开发者论坛链接](https://developer.apple.com/forums/thread/663271)
有没有什么解决方法或替代方案?
查看原文
I was using a cool tool called localias, which allows you to set `.local` domains with https for services running on your mac. It's really helpful to be able to access the services on your network at the same address (especially for mobile dev). Example:<p>localias add frontend.local 5173 # you can now access https://frontend.local and it will resolve to your local service listening on 5173.<p>But it seems like apple locked down the mdns capability behind a paywall?
https://github.com/peterldowns/localias/issues/40#issuecomment-2630197849<p>https://developer.apple.com/forums/thread/663271<p>Any workaround/alternatives?