can't get proper IP address in case of trust_x_forwarded_for=true and scheme is ssl

in favor of #372, pointed out by @shino