问HN:Mac上的mDNS被锁定了吗?

1作者: techn002 个月前原帖
我正在使用一个很酷的工具,叫做 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&#x27;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:&#x2F;&#x2F;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:&#x2F;&#x2F;github.com&#x2F;peterldowns&#x2F;localias&#x2F;issues&#x2F;40#issuecomment-2630197849<p>https:&#x2F;&#x2F;developer.apple.com&#x2F;forums&#x2F;thread&#x2F;663271<p>Any workaround&#x2F;alternatives?