mDNS discovered hosts have the name set to the address until they are polled

This commit is contained in:
Diego Waxemberg 2015-01-02 23:57:49 -05:00
parent f0b145c01a
commit d134ff83d6

View File

@ -52,6 +52,7 @@ static NSString* NV_SERVICE_TYPE = @"_nvstream._tcp";
if (service.hostName != nil) { if (service.hostName != nil) {
Host* host = [dataMan createHost]; Host* host = [dataMan createHost];
host.address = service.hostName; host.address = service.hostName;
host.name = host.address;
[hosts addObject:host]; [hosts addObject:host];
} }
} }