Project

General

Profile

« Previous | Next » 

Revision aeb44799

Added by Renato Botelho almost 11 years ago

Fix #3790. Fix IPv6 Prefix ID check using interface user choose before save

View differences:

usr/local/www/interfaces.php
464 464

  
465 465
	unset($input_errors);
466 466
	$pconfig = $_POST;
467

  
468
	if (isset($_POST['track6-interface'])) {
469
		$ipv6_delegation_length = calculate_ipv6_delegation_length($_POST['track6-interface']);
470
		$ipv6_num_prefix_ids = pow(2, $ipv6_delegation_length);
471
	}
472

  
467 473
	if (is_numeric("0x" . $_POST['track6-prefix-id--hex']))
468 474
		$pconfig['track6-prefix-id'] = intval($_POST['track6-prefix-id--hex'], 16);
469 475
	else

Also available in: Unified diff