changeset 1680:eee86327fe92

don't do reverse DNS lookups for standalone logging (ported from 1.5)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Nov 2006 17:36:50 +0100
parents d6b93908e4d9
children fc03cd8ff0f3
files MoinMoin/server/STANDALONE.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/server/STANDALONE.py	Sun Nov 19 17:30:59 2006 +0100
+++ b/MoinMoin/server/STANDALONE.py	Sun Nov 19 17:36:50 2006 +0100
@@ -384,6 +384,10 @@
         """
         shutil.copyfileobj(source, outputfile, length=self.bufferSize)
 
+    def address_string(self):
+        """We don't want to do reverse DNS lookups, just return IP address."""
+        return self.client_address[0]
+
 
 try:
     from tlslite.api import TLSSocketServerMixIn, X509, X509CertChain, SessionCache, parsePEMKey, TLSError