Switch from uuid1 to uuid4. uuid4 does not leak ip address

This commit is contained in:
Michel Oosterhof
2014-11-04 10:42:08 +00:00
parent 818c5c16d4
commit 41bc8b65e4
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class DBLogger(dblog.DBLogger):
self.outfile.flush()
def createSession(self, peerIP, peerPort, hostIP, hostPort):
sid = uuid.uuid1().hex
sid = uuid.uuid4().hex
sensorname = self.getSensor() or hostIP
self.write(sid, 'New connection: %s:%s' % (peerIP, peerPort))
return sid

View File

@@ -54,7 +54,7 @@ class DBLogger(dblog.DBLogger):
d.addErrback(self.sqlerror)
def createSession(self, peerIP, peerPort, hostIP, hostPort):
sid = uuid.uuid1().hex
sid = uuid.uuid4().hex
self.createSessionWhenever(sid, peerIP, hostIP)
return sid

View File

@@ -20,7 +20,7 @@ class DBLogger(dblog.DBLogger):
self.outfile.flush()
def createSession(self, peerIP, peerPort, hostIP, hostPort):
sid = uuid.uuid1().hex
sid = uuid.uuid4().hex
sensorname = self.getSensor() or hostIP
self.write(sid, 'New connection: %s:%s' % (peerIP, peerPort))
return sid