Skip to content

Commit 3791c85

Browse files
committed
Fix IPv6 hostname HOSTNAME interpolation
1 parent 4c174e4 commit 3791c85

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "simplyprint-duet3d"
3-
version = "1.3.8"
3+
version = "1.3.9"
44
description = "SimplyPrint integration with any Duet3D powered RepRapFirmware printers "
55
readme = "README.rst"
66
license-files = ["LICENSE"]

simplyprint_duet3d/cli/autodiscover.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ async def get_webcam_url(duet: RepRapFirmware) -> str:
7979

8080
if duet_url_parse.hostname != '':
8181
hostname = duet_url_parse.hostname
82+
if ":" in hostname:
83+
hostname = f"[{hostname}]"
8284
if webcam_url_parse.port is not None:
8385
hostname = f"{hostname}:{webcam_url_parse.port}"
8486
if hostname == '':

0 commit comments

Comments
 (0)