diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index f052a1154b..70da73511f 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -127,7 +127,7 @@ function convert_ip_to_network_format($ip, $subnet) { * find_interface_ip($interface): return the interface ip (first found) */ function find_interface_ip($interface) { - $ip = exec_command("/sbin/ifconfig {$interface} | grep \"inet \" | cut -d\" \" -f 2"); + $ip = exec_command("/sbin/ifconfig {$interface} | grep \"inet \" | cut -n1 -d\" \" -f 2"); return $ip; }