Skip to content

Commit c2386b6

Browse files
Update websocket_server/ApiService.js
Co-authored-by: Julius Knorr <[email protected]> Signed-off-by: Hoang Pham <[email protected]>
1 parent 434437d commit c2386b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket_server/ApiService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Config from './Config.js'
1212
export default class ApiService {
1313

1414
constructor(tokenGenerator) {
15-
this.agent = (Config.USE_TLS && Config.BYPASS_SSL_VALIDATION) ? new https.Agent({ rejectUnauthorized: false }) : null
15+
this.agent = (Config.USE_TLS) ? new https.Agent({ rejectUnauthorized: !Config.BYPASS_SSL_VALIDATION }) : null
1616
this.tokenGenerator = tokenGenerator
1717
}
1818

0 commit comments

Comments
 (0)