Fix source IP in logging