Refactor: Skip socket resolution, load device hostname/IP directly from file

- Remove socket.gethostname() and socket.gethostbyname() calls
- Device info now loads exclusively from device_info.txt
- Device hostname and IP are independent of server hostname
- Resolves DNS/socket errors on startup
- Device info file is primary config source for device identity
This commit is contained in:
Developer
2025-12-18 14:14:52 +02:00
parent b12c47d01f
commit a50197a9d6
2 changed files with 29 additions and 61 deletions

View File

@@ -1,2 +1,2 @@
TestLinux
127.0.1.1
RPI-Device
192.168.1.100