Project

General

Profile

« Previous | Next » 

Revision b98f601e

Added by Phil Davis about 13 years ago

Fix: Warning: preg_match(): No ending delimiter '/' found in /etc/inc/gwlb.inc on line 696

View differences:

etc/inc/gwlb.inc
1 1
<?php
2 2
/*
3 3
  Copyright (C) 2008 Bill Marquette, Seth Mos
4
  Copyright (C) 2010 Ermal Lu?i
4
  Copyright (C) 2010 Ermal Lui
5 5
  All rights reserved.
6 6

  
7 7
  Redistribution and use in source and binary forms, with or without
......
693 693
				$dfltgwdown = true;
694 694
		}
695 695
		if ($dfltgwdown == true && !empty($upgw)) {
696
			if (preg_match("/dynamic", $gateways_arr[$upgw]['gateway']))
696
			if (preg_match("/dynamic/i", $gateways_arr[$upgw]['gateway']))
697 697
				$gateways_arr[$upgw]['gateway'] = get_interface_gateway($gateways_arr[$upgw]['friendlyiface']);
698 698
			if (is_ipaddr($gateways_arr[$upgw]['gateway'])) {
699 699
				log_error("Default gateway down setting {$upgw} as default!");

Also available in: Unified diff