Project

General

Profile

« Previous | Next » 

Revision 446db735

Added by Matthew Smith almost 10 years ago

Add support for an IPv6 pool for mobile clients.

View differences:

src/etc/inc/vpn.inc
927 927

  
928 928
			$rightsourceip = NULL;
929 929
			if (isset($ph1ent['mobile'])) {
930
				$rightsourceips = array();
930 931
				if (!empty($a_client['pool_address'])) {
931
					$rightsourceip = "\trightsourceip = {$a_client['pool_address']}/{$a_client['pool_netbits']}\n";
932
				} elseif ($ph1ent['authentication_method'] == "eap-radius") {
933
					$rightsourceip = "\trightsourceip = %radius\n";
932
					$rightsourceips[] = "{$a_client['pool_address']}/{$a_client['pool_netbits']}";
933
				}
934
				if (!empty($a_client['pool_address_v6'])) {
935
					$rightsourceips[] = "{$a_client['pool_address_v6']}/{$a_client['pool_netbits_v6']}";
936
				}
937
				if ($ph1ent['authentication_method'] == "eap-radius" && !count($rightsourceips)) {
938
					$rightsourceips[] = "%radius";
939
				}
940
				if (count($rightsourceips)) {
941
					$rightsourceip = "\trightsourceip = " . implode(',', $rightsourceips) . "\n";
934 942
				}
935 943
			}
936 944

  

Also available in: Unified diff