Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
muromec committed Sep 27, 2021
1 parent d857322 commit fd709c6
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 14,549 deletions.
21 changes: 17 additions & 4 deletions agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async function do_sc(
});
}
const tb = await box.pipe(content, pipe, headers);
if(tb.error) {
if (tb.error) {
error("Error occured inside the pipeline.");
return false;
}
Expand Down Expand Up @@ -253,7 +253,7 @@ async function do_parse(inputF, outputF, box, tsp, ocsp) {
error(
"OCSP-Check:",
ocsp.statusOk ? "OK" : ocsp.requestOk ? "Fail" : "Unknown",
ocsp.isOcspStamp ? 'Stamp' : 'Online'
ocsp.isOcspStamp ? "Stamp" : "Online"
);
if (ocsp.hasOwnProperty("time")) {
error("OCSP-Check-Time:", ocsp.time);
Expand Down Expand Up @@ -349,11 +349,24 @@ async function main(argv, setIo) {
}

if (argv.agent && !argv.connect) {
return daemon.start({box, silent: argv.silent, bind: argv.bind, tcp: argv.tcp, ca: argv.ca_path, key: argv.connect_key, keep_alive: argv.keep_alive});
return daemon.start({
box,
silent: argv.silent,
bind: argv.bind,
tcp: argv.tcp,
ca: argv.ca_path,
key: argv.connect_key,
keep_alive: argv.keep_alive,
});
}

if (argv.proxy) {
return proxy.start({silent: argv.silent, bind: argv.bind, key: argv.connect_key, ports: argv.ports});
return proxy.start({
silent: argv.silent,
bind: argv.bind,
key: argv.connect_key,
ports: argv.ports,
});
}

if (box && box.sock) {
Expand Down
Loading

0 comments on commit fd709c6

Please sign in to comment.