Skip to content

Commit

Permalink
Allow 'utun0' device name on OSX
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Oct 29, 2014
1 parent 898246b commit 42fec77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tun.c
Expand Up @@ -287,8 +287,8 @@ intptr_t os_setup_tun(struct openconnect_info *vpninfo)
goto do_bsdtun;

if (strncmp(vpninfo->ifname, "utun", 4) ||
vpninfo->ifname[4] == '0' ||
(unit_nr = strtol(vpninfo->ifname + 4, &endp, 10), !endp) ||
(unit_nr && vpninfo->ifname[4] == '0') ||
*endp) {
vpn_progress(vpninfo, PRG_ERR,
_("Invalid interface name '%s'; must match 'utun%%d' or 'tun%%d'\n"),
Expand Down

0 comments on commit 42fec77

Please sign in to comment.