when using a reverse proxy all the ip addresses of orders are the same. therefore you should use
HTTP_X_REAL_IP
instead of
REMOTE_ADDR
in the get_ip function.
please change it in the next version so we do not have to customise it everytime we update viart shop