Skip to content

Commit 7cbe427

Browse files
authored
Fix verbose startup error with https proxy on by BinaryDevil
2 parents 557ff5b + 0a6f8d5 commit 7cbe427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-binance-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,9 @@ let api = function Binance( options = {} ) {
687687
} );
688688
ws = new WebSocket( stream + endpoint, { agent: agent } );
689689
} else if ( httpsproxy !== false ) {
690-
if ( Binance.options.verbose ) Binance.options.log( 'using proxy server ' + agent );
691690
let config = url.parse( httpsproxy );
692691
let agent = new HttpsProxyAgent( config );
692+
if ( Binance.options.verbose ) Binance.options.log( 'using proxy server ' + agent );
693693
ws = new WebSocket( stream + endpoint, { agent: agent } );
694694
} else {
695695
ws = new WebSocket( stream + endpoint );

0 commit comments

Comments
 (0)