File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ function Server (opts) {
45
45
this . allowUpgrades = false !== opts . allowUpgrades ;
46
46
this . allowRequest = opts . allowRequest ;
47
47
this . cookie = false !== opts . cookie ? ( opts . cookie || 'io' ) : false ;
48
- this . origins = opts . origins !== undefined ? opts . origins : '*' ;
48
+ this . origins = opts . origins || '*' ;
49
49
this . cookiePath = false !== opts . cookiePath ? ( opts . cookiePath || '/' ) : false ;
50
50
this . cookieHttpOnly = false !== opts . cookieHttpOnly ;
51
51
this . perMessageDeflate = false !== opts . perMessageDeflate ? ( opts . perMessageDeflate || true ) : false ;
Original file line number Diff line number Diff line change @@ -917,7 +917,7 @@ describe('server', function () {
917
917
it ( 'should trigger transport close before open for ws' , function ( done ) {
918
918
var opts = { transports : [ 'websocket' ] } ;
919
919
listen ( opts , function ( port ) {
920
- var url = 'ws://%s:%d' . s ( '0.0.0.50 ' , port ) ;
920
+ var url = 'ws://%s:%d' . s ( '0.0.0.0 ' , port ) ;
921
921
var socket = new eioc . Socket ( url ) ;
922
922
socket . on ( 'open' , function ( ) {
923
923
done ( new Error ( 'Test invalidation' ) ) ;
You can’t perform that action at this time.
0 commit comments