mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Add zeroconf to job_server and listener to client
This commit is contained in:
@@ -5,11 +5,12 @@ import tkinter as tk
|
||||
import threading
|
||||
import time
|
||||
import socket
|
||||
import os
|
||||
import os, sys
|
||||
from tkinter import ttk, messagebox
|
||||
from PIL import Image, ImageTk
|
||||
from new_job_window import NewJobWindow
|
||||
from server_proxy import RenderServerProxy
|
||||
sys.path.append("../")
|
||||
from lib.server.zeroconf_server import ZeroconfServer
|
||||
|
||||
|
||||
@@ -53,8 +54,8 @@ class ZordonClient:
|
||||
self.job_cache = []
|
||||
|
||||
# Setup zeroconf
|
||||
self.zeroconf = ZeroconfServer("_zordon._tcp.local.", self.server_proxy.hostname, self.server_proxy.port)
|
||||
self.zeroconf.start()
|
||||
self.zeroconf = ZeroconfServer("_zordon._tcp.local.", socket.gethostname(), 8080)
|
||||
self.zeroconf.start(listen_only=True)
|
||||
|
||||
# Setup photo preview
|
||||
photo_pad = tk.Frame(self.root, background="gray")
|
||||
|
||||
Reference in New Issue
Block a user