zeroconf: add hostname to service name
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user