From 917258d94145eeb27bd2bb6397c9eee003de4d27 Mon Sep 17 00:00:00 2001 From: dpinkevych Date: Fri, 23 Oct 2026 14:35:36 +0300 Subject: [PATCH] fix(iot-hub): normalize the Device connectivity host before the loopback check isLoopbackHost takes a bare host since 66ed132, but addTransportFields passed the server value as is. The Device connectivity host isn't validated, so it can be saved as localhost:1883; DeviceConnectivityUtil.getHost returns that unchanged. It then wasn't seen as loopback, the fields became read-only, and the sketch / docker-compose got localhost with no way to correct it. addTransportFields now reduces the server host with toBareHost once, and uses the bare host for the loopback check, the default value and the hints. --- .../device-install-dialog.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts index 563e9adfdd..98697fd4f8 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts @@ -827,10 +827,12 @@ export class TbDeviceInstallDialogComponent extends DialogComponent this.usesVariable(ws, `${protocol}.host`)); if (firstUse < 0) {