         self.serviceType = "_" + self.sanitizeCharsToDNSChars(str: serviceType) + "._tcp"
         
         self.serverPort = serverPort
-        self.bluetoothOnly = overBluetoothOnly
         self.delegateQueue = queue
+        if let interfaces = interfaces {
+            self.bluepeerInterfaces = interfaces
+        }
         
         var name = UIDevice.current.name
         if let displayName = displayName {

            NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground), name: NSNotification.Name.NSExtensionHostWillEnterForeground, object: nil)
        } 
        
        DLog("Initialized. Name: \(self.displayNameSanitized), bluetoothOnly: \(self.bluetoothOnly ? "yes" : "no")")
    }
    
    deinit {

            }
            
            let prots = UInt32(kDNSServiceProtocol_IPv4) | UInt32(kDNSServiceProtocol_IPv6)
            switch self.bluepeerInterfaces {
            case .any:
                service.beginResolve(UInt32(kDNSServiceInterfaceIndexAny), includeP2P: true, addressLookupProtocols: prots)
                break
            case .notWifi:
                service.beginResolve(kDNSServiceInterfaceIndexP2PSwift, includeP2P: true, addressLookupProtocols: prots)
                break
            case .infrastructureModeWifiOnly:
                service.beginResolve(UInt32(kDNSServiceInterfaceIndexAny), includeP2P: false, addressLookupProtocols: prots)
                break
            }
        }
    }
