mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-22 03:49:18 +02:00
WIP: multi virtual printer support
This commit is contained in:
@@ -39,11 +39,13 @@ class BindServer:
|
||||
model: str,
|
||||
name: str,
|
||||
version: str = "01.00.00.00",
|
||||
bind_address: str = "0.0.0.0", # nosec B104
|
||||
):
|
||||
self.serial = serial
|
||||
self.model = model
|
||||
self.name = name
|
||||
self.version = version
|
||||
self.bind_address = bind_address
|
||||
|
||||
self._server: asyncio.Server | None = None
|
||||
self._running = False
|
||||
@@ -59,7 +61,7 @@ class BindServer:
|
||||
self._running = True
|
||||
self._server = await asyncio.start_server(
|
||||
self._handle_client,
|
||||
"0.0.0.0", # nosec B104
|
||||
self.bind_address,
|
||||
BIND_PORT,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user