code: def get_trusted_ip(request, right_most_proxy=False, trusted_proxies=TRUSTED_PROXY_LIST):
      
      warnings.warn('get_trusted_ip is deprecated and will be removed in 3.0.', DeprecationWarning)
      if trusted_proxies:
          meta_keys = ['HTTP_X_FORWARDED_FOR', 'X_FORWARDED_FOR']
          for key in meta_keys:
              value = request.META.get(key, request.META.get(key.replace('_', '-'), '')).strip()
              if value:
                  ips = [ip.strip().lower() for ip in value.split(',')]
                  if len(ips) > 1:
                      if right_most_proxy:
                          ips.reverse()
                      for proxy in trusted_proxies:
                          if proxy in ips[-1]:
                              return ips[0]
      return None
docs: Returns client's ip-address from `trusted` proxy server(s) or None
      @deprecated - Do not edit