Skip to content

Commit

Permalink
Add ENETUNREACH to NET_ERRS
Browse files Browse the repository at this point in the history
We shouldn't come up with a fatal error because of a ENETUNREACH when
trying to contact the DNS server. Although this error shouldn't happen
either.

Fixes #89.
  • Loading branch information
brianmay committed Apr 20, 2016
1 parent 74e308a commit 1dda9dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sshuttle/ssnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@

NET_ERRS = [errno.ECONNREFUSED, errno.ETIMEDOUT,
errno.EHOSTUNREACH, errno.ENETUNREACH,
errno.EHOSTDOWN, errno.ENETDOWN]
errno.EHOSTDOWN, errno.ENETDOWN,
errno.ENETUNREACH]


def _add(l, elem):
Expand Down

0 comments on commit 1dda9dd

Please sign in to comment.