Project

General

Profile

« Previous | Next » 

Revision 2db1f552

Added by Ermal LUÇI almost 15 years ago

There are no interfaces stored in static routes. Correct code for that.

View differences:

etc/inc/system.inc
355 355
		$gateways_arr = return_gateways_array();
356 356

  
357 357
		foreach ($config['staticroutes']['route'] as $rtent) {
358
			if (!empty($interface) && $interface != $rtent['interface'])
359
				continue;
360 358
			$gatewayip = "";
361 359
			if (isset($gateways_arr[$rtent['gateway']])) {
362 360
				$gatewayip = $gateways_arr[$rtent['gateway']]['gateway'];
363
				$interfacegw = get_real_interface($rtent['interface']);
361
				$interfacegw = $gateways_arr[$rtent['gateway']]['interface'];
364 362
			} else if (is_ipaddr($rtent['gateway'])) {
365 363
				$gatewayip = $rtent['gateway'];
366 364
			} else {

Also available in: Unified diff