Use the -n flag to route(8) when calling "route get". Otherwise we hang

for a long time if we get a lease, but DNS isn't working.

MFC after:	1 week
This commit is contained in:
Brooks Davis 2008-06-09 20:03:35 +00:00
parent 1e67a3e2cc
commit 9761cdd839
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179689

View File

@ -260,7 +260,7 @@ exit_with_hooks() {
# commands that are available prior to /usr being mounted.
is_default_interface()
{
routeget="`route get -inet default`"
routeget="`route -n get -inet default`"
oldifs="$IFS"
IFS="
"