use the short username for the Bonjour web ui name
This commit is contained in:
parent
79e215ced5
commit
9701e65bd8
|
@ -44,8 +44,8 @@ BonjourController * fDefaultController = nil;
|
||||||
{
|
{
|
||||||
[self stop];
|
[self stop];
|
||||||
|
|
||||||
CFStringRef machineName = CSCopyMachineName();
|
CFStringRef userName = CSCopyUserName(TRUE);
|
||||||
NSString * serviceName = [NSString stringWithFormat: @"%@: Transmission Web Interface", (NSString *)machineName];
|
NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@)", (NSString *)userName];
|
||||||
CFRelease(machineName);
|
CFRelease(machineName);
|
||||||
|
|
||||||
fService = [[NSNetService alloc] initWithDomain: @"local." type: @"_http._tcp." name: serviceName port: port];
|
fService = [[NSNetService alloc] initWithDomain: @"local." type: @"_http._tcp." name: serviceName port: port];
|
||||||
|
|
Loading…
Reference in New Issue