Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
fix: drop empty certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Feb 8, 2019
1 parent 6f957d0 commit a43c3ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import { Connector, Config } from './connector'
import * as Winston from 'winston'
import _ = require('underscore')

// CLI arguments / Environment variables --------------
let host: string = process.env.CORE_HOST || '127.0.0.1'
Expand Down Expand Up @@ -173,7 +174,7 @@ if (disableWatchdog) logger.info('Watchdog is disabled!')
let config: Config = {
process: {
unsafeSSL: unsafeSSL,
certificates: certs
certificates: _.compact(certs)
},
device: {
deviceId: deviceId,
Expand Down

0 comments on commit a43c3ac

Please sign in to comment.