Project

General

Profile

« Previous | Next » 

Revision d9c96fb1

Added by Jim Pingle about 13 years ago

Flip this test around since it's safer to assume the dev mode is tun. Ticket #2432

View differences:

etc/inc/openvpn.inc
741 741
		$serverip = long2ip32($baselong + 1);
742 742
		$clientip = long2ip32($baselong + 2);
743 743
		/* Because this is being pushed, the order from the client's point of view. */
744
		if ($settings['dev_mode'] == 'tun')
745
			$conf .= "ifconfig-push {$clientip} {$serverip}\n";
746
		else
744
		if ($settings['dev_mode'] != 'tap')
747 745
			$conf .= "ifconfig-push {$clientip} {$mask}\n";
746
		else
747
			$conf .= "ifconfig-push {$clientip} {$serverip}\n";
748 748
	}
749 749

  
750 750
	openvpn_add_dhcpopts($settings, $conf);

Also available in: Unified diff