Diff

util/prosodyctl.lua @ 9499:36e379f058c8

net.server: Swich method for connecting sockets with remotes LuaSocket TCP sockets have have both :connect and :setpeername, which are the exact same function, however UDP sockets only have :setpeername. Switching to :setpeername allows most of this code to be generic wrt TCP/UDP.
author Kim Alvefur <zash@zash.se>
date Fri, 12 Oct 2018 17:36:34 +0200 (2018-10-12)
parent 8883:3f975bbfec3b
child 9781:161411a41377
child 10720:6e46fefe956c
line wrap: on
line diff