]> granicus.if.org Git - transmission/commitdiff
#4388 include the computer name in the Bonjour service name
authorMitchell Livingston <livings124@transmissionbt.com>
Tue, 26 Jul 2011 22:46:33 +0000 (22:46 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Tue, 26 Jul 2011 22:46:33 +0000 (22:46 +0000)
macosx/BonjourController.m

index 489095e2e4936e30c5c613af651c62bb79de8100..c4b6e050bc36062cc88b9431f2c2ff03d21e33b8 100644 (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];