mirror of
				https://git.coolaj86.com/coolaj86/telebit.js.git
				synced 2025-11-04 02:32:47 +00:00 
			
		
		
		
	leave servernames and ports as arrays
This commit is contained in:
		
							parent
							
								
									f32e9e7020
								
							
						
					
					
						commit
						2ffdc760a3
					
				@ -284,7 +284,7 @@ function askForConfig(answers, mainCb) {
 | 
				
			|||||||
        resp = (resp || '').trim().split(/,/g);
 | 
					        resp = (resp || '').trim().split(/,/g);
 | 
				
			||||||
        if (!resp.length) { askServernames(); return; }
 | 
					        if (!resp.length) { askServernames(); return; }
 | 
				
			||||||
        // TODO validate the domains
 | 
					        // TODO validate the domains
 | 
				
			||||||
        answers.servernames = resp.join(',');
 | 
					        answers.servernames = resp;
 | 
				
			||||||
        setTimeout(cb, 250);
 | 
					        setTimeout(cb, 250);
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -299,7 +299,7 @@ function askForConfig(answers, mainCb) {
 | 
				
			|||||||
        resp = (resp || '').trim().split(/,/g);
 | 
					        resp = (resp || '').trim().split(/,/g);
 | 
				
			||||||
        if (!resp.length) { askPorts(); return; }
 | 
					        if (!resp.length) { askPorts(); return; }
 | 
				
			||||||
        // TODO validate the domains
 | 
					        // TODO validate the domains
 | 
				
			||||||
        answers.ports = resp.join(',');
 | 
					        answers.ports = resp;
 | 
				
			||||||
        setTimeout(cb, 250);
 | 
					        setTimeout(cb, 250);
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user