From 053925efebf466b5866de12434010c1e8127c172 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sun, 21 Sep 2014 11:14:19 +0100 Subject: [PATCH] Fix default TAP device on Darwin. On Darwin (tuntapx), the first TAP device is /dev/tap0, not /dev/tun0. --- src/bsd/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bsd/device.c b/src/bsd/device.c index 49508bc..0e795dd 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" -- 2.25.1