use the short username for the Bonjour web ui name

This commit is contained in:
Mitchell Livingston 2008-12-07 22:35:49 +00:00
parent 79e215ced5
commit 9701e65bd8
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ BonjourController * fDefaultController = nil;
{
[self stop];
CFStringRef machineName = CSCopyMachineName();
NSString * serviceName = [NSString stringWithFormat: @"%@: Transmission Web Interface", (NSString *)machineName];
CFStringRef userName = CSCopyUserName(TRUE);
NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@)", (NSString *)userName];
CFRelease(machineName);
fService = [[NSNetService alloc] initWithDomain: @"local." type: @"_http._tcp." name: serviceName port: port];