[netspeed] Use default route



commit f8c51d51095a38e34d859146149a7af3272e1d52
Author: Jaap A. Haitsma <jaap haitsma org>
Date:   Mon Apr 27 07:27:02 2009 +0200

    Use default route
    
    Fixes bug #570548
---
 src/backend.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/backend.c b/src/backend.c
index 698e004..4b93709 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -103,7 +103,7 @@ get_default_route(void)
 		
 		if (retval != 11) continue;
 			
-		if (gw == 0 && !is_dummy_device(device)) {
+		if (ip == 0 && !is_dummy_device(device)) {
 			fclose(fp);
 			return device;
 		}			



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]