Skip to content

Instantly share code, notes, and snippets.

Created June 10, 2014 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/3b2822bdf225a5b66bf2 to your computer and use it in GitHub Desktop.
Save anonymous/3b2822bdf225a5b66bf2 to your computer and use it in GitHub Desktop.

Patch flushDNSCache function located in /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh with following code inside case statement:

10.10 )
  if [ -x /usr/sbin/discoveryutil ] ; then
    /usr/sbin/discoveryutil mdnsflushcache
    logMessage "Flushed the DNS Cache"
  else
    logMessage "/usr/sbin/discoveryutil not present. Not flushing the DNS cache"
  fi
  ;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment