Project

General

Profile

« Previous | Next » 

Revision 174cb4df

Added by Renato Botelho almost 5 years ago

Style: Break a couple of long lines

View differences:

src/etc/inc/ipsec.inc
1731 1731
		$interfaceip = get_interface_ip($vpninterface);
1732 1732
		$subnet_bits = get_interface_subnet($vpninterface);
1733 1733
		$subnet_ip = gen_subnetv4($interfaceip, $subnet_bits);
1734
		/* if the remote gateway is in the local subnet, then don't add a route */
1734
		/*
1735
		 * if the remote gateway is in the local subnet, then don't add
1736
		 * a route
1737
		 */
1735 1738
		if (is_ipaddrv4($sourcehost) &&
1736 1739
		    !ip_in_subnet($sourcehost, "{$subnet_ip}/{$subnet_bits}") &&
1737 1740
		    is_ipaddrv4($gatewayip) && !$duplicates) {
......
1743 1746
		$interfaceip = get_interface_ipv6($vpninterface);
1744 1747
		$subnet_bits = get_interface_subnetv6($vpninterface);
1745 1748
		$subnet_ip = gen_subnetv6($interfaceip, $subnet_bits);
1746
		/* if the remote gateway is in the local subnet, then don't add a route */
1749
		/*
1750
		 * if the remote gateway is in the local subnet, then don't add
1751
		 * a route
1752
		 */
1747 1753
		if (is_ipaddrv6($sourcehost) &&
1748 1754
		    !ip_in_subnet($sourcehost, "{$subnet_ip}/{$subnet_bits}") &&
1749 1755
		    is_ipaddrv6($gatewayip) && !$duplicates) {

Also available in: Unified diff