]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
import string; add 129.6.64 to security
authorGuido van Rossum <guido@python.org>
Wed, 21 Jun 1995 02:10:32 +0000 (02:10 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 21 Jun 1995 02:10:32 +0000 (02:10 +0000)
Demo/pdist/server.py

index 4efb180bc8a5104cfbe4005779b06baf94b26780..423d583007b78071003a410e9ea95e44b63d606c 100755 (executable)
@@ -58,7 +58,7 @@ class Server:
                        if self._verbose > 1: print "Wait for next request ..."
                        ok = self._dorequest(rf, wf)
        
-       _valid = ['192.16.201.*', '192.16.197.*', '132.151.1.*']
+       _valid = ['192.16.201.*', '192.16.197.*', '132.151.1.*', '129.6.64.*']
        
        def _verify(self, conn, address):
                host, port = address
@@ -121,6 +121,7 @@ class SecureServer(Server, Security):
                Security.__init__(self)
 
        def _verify(self, conn, address):
+               import string
                challenge = self._generate_challenge()
                conn.send("%d\n" % challenge)
                response = ""