Project

General

Profile

« Previous | Next » 

Revision 691fbf14

Added by Ermal Luçi over 15 years ago

Feature #248. Ticket #248. Merge patch from Antonio No to add tap device type to OpenVPN.

View differences:

usr/local/www/vpn_openvpn_client.php
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'];
......
383 386
							</select>
384 387
							</td>
385 388
					</tr>
389
                                        <tr>
390
                                                <td width="22%" valign="top" class="vncellreq"><?=gettext("Device mode");?></td>
391
                                                        <td width="78%" class="vtable">
392
                                                        <select name='dev_mode' class="formselect">
393
                                                        <?php
394
                                                                foreach ($openvpn_dev_mode as $mode):
395
                                                                        $selected = "";
396
                                                                        if ($pconfig['dev_mode'] == $mode)
397
                                                                                $selected = "selected";
398
                                                        ?>
399
                                                                <option value="<?=$mode;?>" <?=$selected;?>><?=$mode;?></option>
400
                                                        <?php endforeach; ?>
401
                                                        </select>
402
                                                        </td>
403
                                        </tr>
386 404
					<tr>
387 405
						<td width="22%" valign="top" class="vncellreq">Interface</td>
388 406
						<td width="78%" class="vtable">

Also available in: Unified diff