#4388 include the computer name in the Bonjour service name

This commit is contained in:
Mitchell Livingston 2011-07-26 22:46:33 +00:00
parent 0b2247cc7b
commit 3bbb48df16
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ BonjourController * fDefaultController = nil;
{
[self stop];
NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@)", NSUserName()];
NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@ - %@)", NSUserName(), [[NSHost currentHost] localizedName]];
fService = [[NSNetService alloc] initWithDomain: @"" type: @"_http._tcp." name: serviceName port: port];
[fService setDelegate: self];