Skip to content

Commit b5759b3

Browse files
Chan Chak ShingHainish
authored andcommitted
Update hsts-prune/index.js (EFForg#12145)
1 parent d522f4d commit b5759b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/hsts-prune/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ const parse_include = include_url => {
7171
})
7272
.pipe(split())
7373
.on('data', line => {
74+
line = line.replace(new RegExp('/ 1 /g'), ' true ')
75+
line = line.replace(new RegExp('/ 0 /g'), ' false ')
76+
7477
let regex_res = line.match(regex)
7578
if(regex_res){
7679
hsts[regex_res[1]] = Boolean(regex_res[2])
@@ -236,7 +239,7 @@ async.parallel({
236239
versions.esr_major = versions.esr.replace(/_.*/, "");
237240

238241
let stable_url = `https://hg.mozilla.org/releases/mozilla-release/raw-file/FIREFOX_${versions.stable}_RELEASE/security/manager/ssl/nsSTSPreloadList.inc`;
239-
let dev_url = `https://hg.mozilla.org/releases/mozilla-aurora/raw-file/tip/security/manager/ssl/nsSTSPreloadList.inc`;
242+
let dev_url = `https://hg.mozilla.org/releases/mozilla-beta/raw-file/tip/security/manager/ssl/nsSTSPreloadList.inc`;
240243
let esr_url = `https://hg.mozilla.org/releases/mozilla-esr${versions.esr_major}/raw-file/FIREFOX_${versions.esr}_RELEASE/security/manager/ssl/nsSTSPreloadList.inc`;
241244
let chromium_url = `https://chromium.googlesource.com/chromium/src.git/+/${versions.chromium}/net/http/transport_security_state_static.json?format=TEXT`;
242245

0 commit comments

Comments
 (0)