Skip to content
Browse files

don't ever use the same alias ID twice

thanks to mrcharles and ique on HackerNews for reporting this.

This closes issue #7
  • Loading branch information...
pilif committed Apr 23, 2010
1 parent c6bddef commit 6caa488fef0611f005ccc3fab028862db82eace8
Showing with 4 additions and 1 deletion.
  1. +1 −1 lib/tempalias.js
  2. +3 −0 public/templates/privacy.html
@@ -109,7 +109,7 @@ helpers.extend(Alias.prototype, (function(){
var uuidg = function uuidg() {
var id = UUID.uuid(len);
client.setnx('aliases:' + id, 'reserved', function(err, data) {
client.setnx('reservations:' + id, 'reserved', function(err, data) {
if (err) throw new Error(err);
if (parseInt(""+data, 10) == 0) {
client.set('admin:keylength', len, function(err, data){
@@ -31,6 +31,9 @@ <h2>What we do</h2>
highly concurrent stress.
<p>We prune expired aliases every 30 minutes. This process is irreversible.</p>
<p>We keep a list of every alias ever generated as to make sure that nobody else gets an alias
that was previously generated for you. All other information stored with the alias
(besides its name) is deleted on expiration though.</p>

<h2>What we don't do</h2>
<p>We don't log the emails content.</p>

0 comments on commit 6caa488

Please sign in to comment.
You can’t perform that action at this time.