File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ var https = require('https');
33var settings = require ( '/data/settings.js' ) ;
44var request ;
55
6+ process . env [ "NODE_TLS_REJECT_UNAUTHORIZED" ] = 0 ;
7+
68var options = {
79 host : "localhost" ,
810 port : settings . uiPort || 1880 ,
@@ -12,14 +14,14 @@ var options = {
1214if ( settings . hasOwnProperty ( "https" ) ) {
1315 request = https . request ( options , ( res ) => {
1416 //console.log(`STATUS: ${res.statusCode}`);
15- if ( res . statusCode == 200 ) { process . exit ( 0 ) ; }
17+ if ( ( res . statusCode >= 200 ) && ( res . statusCode < 500 ) ) { process . exit ( 0 ) ; }
1618 else { process . exit ( 1 ) ; }
1719 } ) ;
1820}
1921else {
2022 request = http . request ( options , ( res ) => {
2123 //console.log(`STATUS: ${res.statusCode}`);
22- if ( res . statusCode == 200 ) { process . exit ( 0 ) ; }
24+ if ( ( res . statusCode >= 200 ) && ( res . statusCode < 500 ) ) { process . exit ( 0 ) ; }
2325 else { process . exit ( 1 ) ; }
2426 } ) ;
2527}
Original file line number Diff line number Diff line change 11{
22 "name" : " node-red-docker" ,
3- "version" : " 1.0.3-1 " ,
3+ "version" : " 1.0.3" ,
44 "description" : " Low-code programming for event-driven applications" ,
55 "homepage" : " http://nodered.org" ,
66 "license" : " Apache-2.0" ,
You can’t perform that action at this time.
0 commit comments