From 9b9065d17272660ad31f966c566eb2942f018a33 Mon Sep 17 00:00:00 2001 From: phroggie Date: Tue, 27 Sep 2016 07:32:08 -0500 Subject: Fix static blackhole routes. Bug was introduced in 8be135cd114fbc9294ec9dafed2125d0e553956c (February, 2013). (cherry picked from commit 580bef1ee3052437487553fcc5dc8428ca665098) --- src/etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index da1bb2a..1b87d68 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -683,7 +683,7 @@ function system_staticroutes_configure($interface = "", $update_dns = false) { $interfacegw = $gateway['interface']; $blackhole = ""; - if (!strcasecmp("Null", substr($rtent['gateway'], 0, 3))) { + if (!strcasecmp("Null", substr($rtent['gateway'], 0, 4))) { $blackhole = "-blackhole"; } -- cgit v1.1