Don't advertise smb print/file shares if m->AdvertiseLocalAddresses is false
authorsherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Fri, 23 Oct 2009 18:09:18 +0000 (18:09 +0000)
committersherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Fri, 23 Oct 2009 18:09:18 +0000 (18:09 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6756 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSWindows/mDNSWin32.c

index c3cadd8..071d76e 100755 (executable)
@@ -4542,7 +4542,7 @@ CheckFileShares( mDNS * const m )
 
        // Only do this if we're not shutting down
 
 
        // Only do this if we're not shutting down
 
-       require_action_quiet( !m->ShutdownTime, exit, err = kNoErr );
+       require_action_quiet( m->AdvertiseLocalAddresses && !m->ShutdownTime, exit, err = kNoErr );
 
        err = RegCreateKey( HKEY_LOCAL_MACHINE, kServiceParametersNode L"\\Services\\SMB", &key );
 
 
        err = RegCreateKey( HKEY_LOCAL_MACHINE, kServiceParametersNode L"\\Services\\SMB", &key );