Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望我的骡子只接受来自本地主机的呼叫,而不是来自任何其他来源的呼叫。我的意思是,有人不应该做“publicIp/getCall”,它应该总是“localhost/getCall”(只能访问本地主机)。我们如何在 mule_config 文件中做到这一点?
自 mule 3.4.0 以来,Mule 改变了这种行为。
现在 localhost 仅绑定到环回地址,而不绑定到所有网络接口。如果您只想在环回上收听,您应该使用 localhost 或 127.0.0.1 ip 地址
查看发行说明以获取更多信息
在使用较旧的 mule 版本时,您可以过滤不允许的 IP 地址。请参阅此答案以了解如何实现
实际上,如果你想映射所有这些,你可以使用0.0.0.0. 它将映射 localhost、127.0.0.1 和机器 IP 地址,效果要好得多。
0.0.0.0