aboutsummaryrefslogtreecommitdiff
path: root/cgi/oekaki.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/oekaki.py')
-rw-r--r--cgi/oekaki.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/oekaki.py b/cgi/oekaki.py
index ab31fb7..a58d0fd 100644
--- a/cgi/oekaki.py
+++ b/cgi/oekaki.py
@@ -120,7 +120,7 @@ def oekaki(self, path_split):
# 4: Data format
board = setBoard(path_split[3])
- ip = inet_aton(self.environ["REMOTE_ADDR"])
+ ip = inet_aton(self.ip)
fname = os.path.join(Settings.IMAGES_DIR,
board['dir'], "temp", str(ip) + ".png")
@@ -144,7 +144,7 @@ def oekaki(self, path_split):
raise UserError('Esta sección no soporta oekaki.')
ts = int(time.time())
- ip = inet_aton(self.environ["REMOTE_ADDR"])
+ ip = inet_aton(self.ip)
fname = os.path.join(Settings.IMAGES_DIR,
board['dir'], "temp", str(ip) + ".png")
oek = 'no'