add proxy check when retriving visitor ip - ticket #5765