Skip to content

Commit

Permalink
Update websocket_server/ApiService.js
Browse files Browse the repository at this point in the history
Co-authored-by: Julius Knorr <jus@bitgrid.net>
Signed-off-by: Hoang Pham <hoangmaths96@gmail.com>
  • Loading branch information
hweihwang and juliusknorr authored Jan 3, 2025
1 parent 434437d commit c2386b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket_server/ApiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Config from './Config.js'
export default class ApiService {

constructor(tokenGenerator) {
this.agent = (Config.USE_TLS && Config.BYPASS_SSL_VALIDATION) ? new https.Agent({ rejectUnauthorized: false }) : null
this.agent = (Config.USE_TLS) ? new https.Agent({ rejectUnauthorized: !Config.BYPASS_SSL_VALIDATION }) : null
this.tokenGenerator = tokenGenerator
}

Expand Down

0 comments on commit c2386b6

Please sign in to comment.