mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
[fix] calibrecompanion.plugin (#3799)
Fixes #3794.
Upstream luasocket 96965b179c 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