diff --git a/pipe_test_with_routing.cpp b/pipe_test_with_routing.cpp index d4fc065534a8e6d6800c77d30634ce81509877e0..38b6ab058140ec18e17348d578c62f07acde0b53 100644 --- a/pipe_test_with_routing.cpp +++ b/pipe_test_with_routing.cpp @@ -16,6 +16,8 @@ int main(int argc, char *argv[]) "route print -4 | findstr /r \"[^0-9]0\\.0\\.0\\.0\" ", "r" ); #elif defined ( Q_OS_LINUX ) + // a guess: netstat -rn | grep "^0\.0\.0\.0" | awk '{print $2}' + // w/o awk: netstat -rn | sed -rn 's/^0\.0\.0\.0\s+([^ ]+).*/\1/p' #else #error "We do not support this version." #endif