Project

General

Profile

Feature #248 » openvpn.webif.tuntap.patch

- /usr/local/www/vpn_openvpn_client.php - Antonio No, 12/25/2009 12:05 PM

View differences:

vpn_openvpn_client.php 2009-12-25 17:37:08.000000000 +0100
92 92
		$pconfig['proxy_port'] = $a_client[$id]['proxy_port'];
93 93
		$pconfig['description'] = $a_client[$id]['description'];
94 94
		$pconfig['custom_options'] = $a_client[$id]['custom_options'];
95
		
95
		$pconfig['ns_cert_type'] = $a_client[$id]['ns_cert_type'];
96
		$pconfig['dev_mode'] = $a_client[$id]['dev_mode'];
97
	
96 98
		if ($pconfig['mode'] != "p2p_shared_key") {
97 99
			$pconfig['caref'] = $a_client[$id]['caref'];
98 100
			$pconfig['certref'] = $a_client[$id]['certref'];
......
197 199

  
198 200
		$client['disable'] = $pconfig['disable'];
199 201
		$client['protocol'] = $pconfig['protocol'];
202
		$client['dev_mode'] = $pconfig['dev_mode'];
200 203
		list($client['interface'], $client['ipaddr']) = explode ("|",$pconfig['interface']);
201 204
		$client['local_port'] = $pconfig['local_port'];
202 205
		$client['server_addr'] = $pconfig['server_addr'];
......
382 385
							</select>
383 386
							</td>
384 387
					</tr>
388
                                        <tr>
389
                                                <td width="22%" valign="top" class="vncellreq"><?=gettext("Device mode");?></td>
390
                                                        <td width="78%" class="vtable">
391
                                                        <select name='dev_mode' class="formselect">
392
                                                        <?php
393
                                                                foreach ($openvpn_dev_mode as $mode):
394
                                                                        $selected = "";
395
                                                                        if ($pconfig['dev_mode'] == $mode)
396
                                                                                $selected = "selected";
397
                                                        ?>
398
                                                                <option value="<?=$mode;?>" <?=$selected;?>><?=$mode;?></option>
399
                                                        <?php endforeach; ?>
400
                                                        </select>
401
                                                        </td>
402
                                        </tr>
385 403
					<tr>
386 404
						<td width="22%" valign="top" class="vncellreq">Interface</td>
387 405
						<td width="78%" class="vtable">
(2-2/2)