Project

General

Profile

« Previous | Next » 

Revision 5050b792

Added by Phil Davis over 8 years ago

Always force compress when calling Net_IPv6

(cherry picked from commit 587995fb57f91894d1f8eb6b296a9fe2fa111fac)

View differences:

src/etc/inc/pfsense-utils.inc
3135 3135
	foreach ($ip6binarr as $binpart) {
3136 3136
		$ip6arr[] = dechex(bindec($binpart));
3137 3137
	}
3138
	$ip6addr = Net_IPv6::compress(implode(":", $ip6arr));
3138
	$ip6addr = text_to_compressed_ip6(implode(":", $ip6arr));
3139 3139

  
3140 3140
	return($ip6addr);
3141 3141
}
......
3217 3217
		break;
3218 3218
	}
3219 3219

  
3220
	return Net_IPv6::compress(substr($prefix, 0, $prefix_len) .
3220
	return text_to_compressed_ip6(substr($prefix, 0, $prefix_len) .
3221 3221
	    substr($suffix, $prefix_len));
3222 3222
}
3223 3223

  

Also available in: Unified diff