Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13 from articulate/bye-direct-links
Browse files Browse the repository at this point in the history
Filter out direct links
  • Loading branch information
tecnobrat authored Oct 23, 2017
2 parents 8fffe70 + ed2b205 commit c44aee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
DEVICE := $(shell netstat -rn -A inet | grep ^0.0.0.0 | tr ' ' '\n' | tail -n1)
else
DEVICE := $(shell netstat -rn -f inet | grep ^default | tr ' ' '\n' | tail -n1)
DEVICE := $(shell netstat -rn -f inet | grep -v "link#" | grep ^default | tr ' ' '\n' | tail -n1)
endif

start:
Expand Down

0 comments on commit c44aee6

Please sign in to comment.