Added method to get client ip even for behind proxy