|  | @@ -19,6 +19,10 @@ if (config.storage === undefined) {
 | 
											
												
													
														|  |      throw 'Auth undefined in the config file';
 |  |      throw 'Auth undefined in the config file';
 | 
											
												
													
														|  |  } else if (config.findPort === undefined) {
 |  |  } else if (config.findPort === undefined) {
 | 
											
												
													
														|  |      throw 'findPort undefined in the config file';
 |  |      throw 'findPort undefined in the config file';
 | 
											
												
													
														|  | 
 |  | +} else if (config.basePort === undefined) {
 | 
											
												
													
														|  | 
 |  | +    throw 'basePort undefined in the config file';
 | 
											
												
													
														|  | 
 |  | +} else if (config.highestPort === undefined) {
 | 
											
												
													
														|  | 
 |  | +    throw 'highestPort undefined in the config file';
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  //Verification valeur
 |  |  //Verification valeur
 | 
											
										
											
												
													
														|  | @@ -28,6 +32,10 @@ if (config.storage !== 'database' && config.storage !== 'file') {
 | 
											
												
													
														|  |      throw 'Bad value for auth: boolean expected';
 |  |      throw 'Bad value for auth: boolean expected';
 | 
											
												
													
														|  |  } else if (typeof config.findPort !== 'boolean') {
 |  |  } else if (typeof config.findPort !== 'boolean') {
 | 
											
												
													
														|  |      throw 'Bad value for findPort: boolean expected';
 |  |      throw 'Bad value for findPort: boolean expected';
 | 
											
												
													
														|  | 
 |  | +} else if (config.basePort < 0 || config.basePort > 65535) {
 | 
											
												
													
														|  | 
 |  | +    throw 'Bad value for basePort: number between 0 and 65535 expected';
 | 
											
												
													
														|  | 
 |  | +} else if (config.highestPort < 0 || config.highestPort > 65535 || config.highestPort < config.basePort) {
 | 
											
												
													
														|  | 
 |  | +    throw 'Bad value for highestPort: number between 0 and 65535 and higher than or equal basePort expected';
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  module.exports = config;
 |  |  module.exports = config;
 |