Projet

Général

Profil

« Précédent | Suivant » 

Révision 5ed13df0

Ajouté par Ermal il y a presque 10 ans

Actually make this correct

Voir les différences:

etc/inc/vpn.inc
297 297

  
298 298
		if (is_array($a_client) && isset($a_client['enable'])) {
299 299
			$strongswan .= "\t\tattr {\n";
300
			if ($a_client['pool_address'] && $a_client['pool_netbits']) {
301
				$pool_address = $a_client['pool_address'];
302
				$pool_netmask = gen_subnet_mask($a_client['pool_netbits']);
303
				$pool_address = long2ip32(ip2long($pool_address)+1);
304

  
305
				$strongswan .= "\t\tsubnet = {$pool_address}/{$pool_netmask}\n";
306
			}
300
			if ($a_client['pool_address'] && $a_client['pool_netbits'])
301
				$strongswan .= "\t\tsubnet = {$a_client['pool_address']}/{$a_client['pool_netmask']}\n";
307 302

  
308 303
			$cfgservers = array();
309 304
			if (!empty($a_client['dns_server1']))

Formats disponibles : Unified diff