From 580bef1ee3052437487553fcc5dc8428ca665098 Mon Sep 17 00:00:00 2001 From: phroggie Date: Tue, 27 Sep 2016 07:32:08 -0500 Subject: [PATCH] Fix static blackhole routes. Bug was introduced in 8be135cd114fbc9294ec9dafed2125d0e553956c (February, 2013). --- 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 0914c19bbe..74745a028d 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -655,7 +655,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"; }