| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f1b09c0 commit 3c92b78
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,11 +5,13 @@ if (!common.hasCrypto) | |||
| 5 | 5 | common.skip('missing crypto'); | |
| 6 | 6 | ||
| 7 | 7 | const assert = require('assert'); | |
| 8 | + const fs = require('fs'); | ||
| 9 | + const path = require('path'); | ||
| 10 | + const tls = require('tls'); | ||
| 11 | + | ||
| 8 | 12 | const tick = require('./tick'); | |
| 9 | 13 | const initHooks = require('./init-hooks'); | |
| 10 | - const fs = require('fs'); | ||
| 11 | 14 | const { checkInvocations } = require('./hook-checks'); | |
| 12 | - const tls = require('tls'); | ||
| 13 | 15 | ||
| 14 | 16 | const hooks = initHooks(); | |
| 15 | 17 | hooks.enable(); | |
@@ -19,8 +21,8 @@ hooks.enable(); | |||
| 19 | 21 | // | |
| 20 | 22 | const server = tls | |
| 21 | 23 | .createServer({ | |
| 22 | - cert: fs.readFileSync(common.fixturesDir + '/test_cert.pem'), | ||
| 23 | - key: fs.readFileSync(common.fixturesDir + '/test_key.pem') | ||
| 24 | + cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')), | ||
| 25 | + key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')) | ||
| 24 | 26 | }) | |
| 25 | 27 | .on('listening', common.mustCall(onlistening)) | |
| 26 | 28 | .on('secureConnection', common.mustCall(onsecureConnection)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments