mirror of
https://github.com/transmission/transmission
synced 2025-02-21 21:57:01 +00:00
#4388 include the computer name in the Bonjour service name
This commit is contained in:
parent
0b2247cc7b
commit
3bbb48df16
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ BonjourController * fDefaultController = nil;
|
||||||
{
|
{
|
||||||
[self stop];
|
[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 = [[NSNetService alloc] initWithDomain: @"" type: @"_http._tcp." name: serviceName port: port];
|
||||||
[fService setDelegate: self];
|
[fService setDelegate: self];
|
||||||
|
|
Loading…
Reference in a new issue