为了跟踪谁在 Mule(3.3.0)中向我的 Rest 服务发送请求,我做了以下操作:
<flow name="restService">
<http:inbound-endpoint name="endpoint" address="${service.address}"/>
<logger message="In restService flow, request received from #[header:INBOUND:MULE_REMOTE_CLIENT_ADDRESS]" level="INFO" />
.
.
.
</flow>
当我向服务器上运行的该服务发送请求时,我在日志中看到:
In restService flow, request received from /172.23.2.249:54615
当外部供应商发送请求时,我看到:
In restService flow, request received from /172.23.2.249:54604
为什么IP相同只是端口号不同。