MFC 11438

use -n so route won't try and resolve IPs
This commit is contained in:
Scott Ullrich 2006-04-15 15:30:28 +00:00
parent 2e901dc83b
commit 2015d209fa

View File

@ -511,7 +511,7 @@ function find_interface_ip($interface) {
}
function guess_interface_from_ip($ipaddress) {
$ret = exec_command("/sbin/route get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2
$ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2
; };'");
return $ret;
}