forked from coolaj86/telebit.js
		
	bugfixes
This commit is contained in:
		
							parent
							
								
									c710288224
								
							
						
					
					
						commit
						e3c046374f
					
				| @ -306,7 +306,7 @@ function askForConfig(answers, mainCb) { | |||||||
|   function next() { |   function next() { | ||||||
|     var q = nextSet.shift(); |     var q = nextSet.shift(); | ||||||
|     if (!q) { |     if (!q) { | ||||||
|       if (useTty) { stdin.end(); stdin.close(); } |       if (useTty) { stdin.close(); } | ||||||
|       rl.close(); mainCb(null, answers); |       rl.close(); mainCb(null, answers); | ||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -153,12 +153,12 @@ function serveControls() { | |||||||
|       if ('undefined' !== typeof conf.telemetry) { |       if ('undefined' !== typeof conf.telemetry) { | ||||||
|         state.config.telemetry = conf.telemetry; |         state.config.telemetry = conf.telemetry; | ||||||
|       } |       } | ||||||
|       conf.servernames.forEach(function (key) { |       Object.keys(conf.servernames).forEach(function (key) { | ||||||
|         if (!state.config.servernames[key]) { |         if (!state.config.servernames[key]) { | ||||||
|           state.config.servernames[key] = {}; |           state.config.servernames[key] = {}; | ||||||
|         } |         } | ||||||
|       }); |       }); | ||||||
|       conf.ports.forEach(function (key) { |       Object.keys(conf.ports).forEach(function (key) { | ||||||
|         if (!state.config.ports[key]) { |         if (!state.config.ports[key]) { | ||||||
|           state.config.ports[key] = {}; |           state.config.ports[key] = {}; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user