Remove dns config on shutdown

Also add calls to MacDNSHelper to the kext tap
This commit is contained in:
Grant Limberg 2020-08-05 14:49:45 -07:00
commit 85a5b0b948
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 7 additions and 1 deletions

View file

@ -202,6 +202,8 @@ MacEthernetTap::MacEthernetTap(
MacEthernetTap::~MacEthernetTap()
{
MacDNSHelper::removeDNS(_nwid);
Mutex::Lock _gl(globalTapCreateLock);
::write(_shutdownSignalPipe[1],"\0",1); // causes thread to exit
Thread::join(_thread);