Skip to content

Commit 33e7d32

Browse files
Dan Auerbachpde
authored andcommitted
Add testing string to request; Send ASN -2 for torbutton uninstalled and user opts into sending ASN. We will fetch on server side
1 parent faad987 commit 33e7d32

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/components/ssl-observatory.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ SSLObservatory.prototype = {
174174
this.client_asn = -1;
175175
return;
176176
}
177+
else if (!this.torbutton_installed) {
178+
this.client_asn = -2;
179+
return;
180+
}
177181
return;
178182
},
179183

@@ -378,6 +382,7 @@ SSLObservatory.prototype = {
378382
reqParams.push("domain="+domain);
379383
reqParams.push("server_ip=-1");
380384
if (this.myGetBoolPref("testing")) {
385+
reqParams.push("testing=1");
381386
// The server can compute these, but they're a nice test suite item!
382387
reqParams.push("fplist="+this.compatJSON.encode(fps));
383388
}

0 commit comments

Comments
 (0)