git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove PLC.Debug.log, use PLC.Logger.logger instead
[plcapi.git]
/
aspects
/
ratelimitaspects.py
diff --git
a/aspects/ratelimitaspects.py
b/aspects/ratelimitaspects.py
index
5aeaa86
..
836b2ba
100644
(file)
--- a/
aspects/ratelimitaspects.py
+++ b/
aspects/ratelimitaspects.py
@@
-18,6
+18,7
@@
import memcache
import os
import sys
import os
import sys
+import socket
class BaseRateLimit(object):
class BaseRateLimit(object):
@@
-105,7
+106,7
@@
Subject: %(subject)s
api_method_caller = "unknown"
# excludes
api_method_caller = "unknown"
# excludes
- if api_method_source == None or api_method_source[0] == s
elf.config.PLC_API_IP
or api_method_source[0] in self.whitelist:
+ if api_method_source == None or api_method_source[0] == s
ocket.gethostbyname(self.config.PLC_API_HOST)
or api_method_source[0] in self.whitelist:
return
# sanity check
return
# sanity check