PLC_API_HOST/PLC_API_IP
[plcapi.git] / aspects / ratelimitaspects.py
index 67f0682..c90758b 100644 (file)
@@ -25,7 +25,7 @@ class BaseRateLimit(object):
         api_method_name = wobj.name
         api_method_source = wobj.source
 
-        if api_method_source == None or api_method_source[0] == self.config.PLC_API_HOST:
+        if api_method_source == None or api_method_source[0] == self.config.PLC_API_IP:
             return
 
         mc = memcache.Client(['%s:11211'] % self.config.PLC_API_HOST)