mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] calibrecompanion.plugin (#3799)
Fixes #3794. Upstream luasocket https://github.com/diegonehab/luasocket/commit/96965b179c7311f850f72a8629b9ba6d3a31d117 switched from just `socket.udp()` to `socket.udp4()` and `socket.udp6()`.
This commit is contained in:
@@ -61,7 +61,7 @@ end
|
||||
|
||||
function CalibreCompanion:find_calibre_server()
|
||||
local socket = require("socket")
|
||||
local udp = socket.udp()
|
||||
local udp = socket.udp4()
|
||||
udp:setoption("broadcast", true)
|
||||
udp:setsockname("*", 8134)
|
||||
udp:settimeout(3)
|
||||
|
||||
Reference in New Issue
Block a user