Revision 21504a52
Added by Renato Botelho over 8 years ago
src/usr/local/www/vpn_openvpn_client.php | ||
---|---|---|
349 | 349 |
|
350 | 350 |
$client = array(); |
351 | 351 |
|
352 |
if (isset($id) && $a_client[$id] && |
|
353 |
$pconfig['dev_mode'] <> $a_client[$id]['dev_mode']) { |
|
354 |
/* |
|
355 |
* delete old interface so a new TUN or TAP interface |
|
356 |
* can be created. |
|
357 |
*/ |
|
358 |
openvpn_delete('client', $a_client[$id]); |
|
359 |
} |
|
360 |
|
|
352 | 361 |
foreach ($simplefields as $stat) { |
353 | 362 |
if (($stat == 'auth_pass') && ($_POST[$stat] == DMYPWD)) { |
354 | 363 |
$client[$stat] = $a_client[$id]['auth_pass']; |
Also available in: Unified diff
As done on OpenVPN Server, delete tunnel when dev_mode changes so new device is created accordingly