From: Etienne Dechamps Date: Sun, 21 Sep 2014 10:14:19 +0000 (+0100) Subject: Fix default TAP device on Darwin. X-Git-Tag: release-1.1pre11~45 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=053925efebf466b5866de12434010c1e8127c172;p=tinc Fix default TAP device on Darwin. On Darwin (tuntapx), the first TAP device is /dev/tap0, not /dev/tun0. --- diff --git a/src/bsd/device.c b/src/bsd/device.c index 49508bc5..0e795dd0 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -35,7 +35,7 @@ #endif #define DEFAULT_TUN_DEVICE "/dev/tun0" -#if defined(HAVE_FREEBSD) || defined(HAVE_NETBSD) +#if defined(HAVE_DARWIN) || defined(HAVE_FREEBSD) || defined(HAVE_NETBSD) #define DEFAULT_TAP_DEVICE "/dev/tap0" #else #define DEFAULT_TAP_DEVICE "/dev/tun0"