Project

General

Profile

« Previous | Next » 

Revision c0481e1c

Added by Ermal Luçi over 15 years ago

Fix several handling of gif/gre addresses and automatically added routes.

View differences:

etc/inc/system.inc
360 360
				$gatewayip = $rtent['gateway'];
361 361
				$interfacegw = $rtent['interface'];
362 362
			}			
363
			if((isset($rtent['interfacegateway'])) && (! is_ipaddr($gatewayip))){
363
			if((isset($rtent['interfacegateway'])) && (! is_ipaddr($gatewayip))) {
364 364
				mwexec("/sbin/route add " . escapeshellarg($rtent['network']) .
365 365
					" -iface " . escapeshellarg(convert_friendly_interface_to_real_interface_name($interfacegw)));
366 366
			} else {
......
1356 1356
	}
1357 1357
}
1358 1358

  
1359
?>
1359
?>

Also available in: Unified diff