1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 21:26:53 +00:00

#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

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];