fix determining default gateway (defaultgw)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
g_nice
|
||||
g_all-to-syslog
|
||||
|
||||
|
||||
read _ _ defaultgw _ < <(ip route list match 0/0)
|
||||
if wget -q -t1 --timeout=30 http://${defaultgw} -O /dev/null
|
||||
then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user