zeroconf: add hostname to service name

This commit is contained in:
2025-06-07 11:39:56 -07:00
parent d34363c650
commit 63094f7e49

View File

@@ -23,6 +23,7 @@ import { getLinkPreview } from "link-preview-js";
import { PlaylistItem, LinkMetadata } from './types'; import { PlaylistItem, LinkMetadata } from './types';
import { FavoritesStore } from "./FavoritesStore"; import { FavoritesStore } from "./FavoritesStore";
import { Bonjour } from "bonjour-service"; import { Bonjour } from "bonjour-service";
import os from 'os';
interface PendingCommand { interface PendingCommand {
resolve: (value: any) => void; resolve: (value: any) => void;
@@ -69,7 +70,7 @@ export class MediaPlayer {
this.bonjourInstance = new Bonjour(); this.bonjourInstance = new Bonjour();
const service = this.bonjourInstance.publish({ const service = this.bonjourInstance.publish({
name: 'QueueCube Media Server', name: `QueueCube Media Server (${os.hostname()})`,
type: 'queuecube', type: 'queuecube',
port: port, port: port,
txt: { txt: {