We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d1cd9f commit c74c3f4Copy full SHA for c74c3f4
src/lfs/ssdp_response.lua
@@ -5,7 +5,7 @@ local function ssdpResponse(c, d, port, ip)
5
local device = require("device")
6
local info = node.info("sw_version")
7
local urn = d:match("ST: (urn:[%w%p]*)")
8
- if (urn == device.urn or string.match(d, "ST: ssdp:all")) then
+ if (string.match(d, "ST:%s*ssdp:all") or (urn and device.urn:sub(1, #urn) == urn)) then
9
print("Heap: ", node.heap(), "Responding to UPnP Discovery request from " .. ip .. ":" .. port)
10
local resp =
11
"HTTP/1.1 200 OK\r\n" ..
0 commit comments