mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
import string; add 129.6.64 to security
This commit is contained in:
parent
f3d39abb25
commit
54175f7cbe
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue