From f3692e4587da4be989abac1a88a047d3a99e6423 Mon Sep 17 00:00:00 2001 From: Arda Aydin Date: Sat, 19 Sep 2026 12:19:41 +0300 Subject: [PATCH] Fix DASP hostname resolution so localhost and hostnames work The dispatch check compared the raw hostname string against the UDP source IP, silently dropping responses when they differed (e.g. "localhost" vs "127.0.0.1"). Resolve hostname to IP at session init. Co-Authored-By: Claude Opus 4.6 --- app_state.py | 2 +- dasp.py | 2 +- editor.properties | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app_state.py b/app_state.py index 942dc37..4ce8b9b 100644 --- a/app_state.py +++ b/app_state.py @@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it. import configparser import os -VERSION = "0.0.0.095" +VERSION = "0.0.0.096" PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties") DEFAULT_GRID_SIZE = 10 DEFAULT_ADD_TIMESTAMP = True diff --git a/dasp.py b/dasp.py index fafe369..2ea59cf 100644 --- a/dasp.py +++ b/dasp.py @@ -589,7 +589,7 @@ class DaspSession: def __init__(self, dasp_socket, session_id, host, port, **options): self.socket = dasp_socket self.id = session_id - self.host = host + self.host = socket.gethostbyname(host) self.port = port self.remote_id = -1 self.is_closed = False diff --git a/editor.properties b/editor.properties index 1e923ea..410403c 100644 --- a/editor.properties +++ b/editor.properties @@ -7,7 +7,7 @@ left_pane_width = 230 trace_dasp = True [Device] -host = 192.168.1.251 +host = 192.168.0.26 port = 1876 user = admin