File

util/sasl/anonymous.lua @ 492:22844ac3be4e

server: Import one of Prosodys net.server implementations Wraps up this behavior in a new module.
author Kim Alvefur <zash@zash.se>
date Wed, 21 Jun 2023 12:21:09 +0200 (2023-06-21)
parent 358:a8f6fd6a70ed
line wrap: on
line source

return function (stream, name)
	if name == "ANONYMOUS" then
		return function ()
			return coroutine.yield() == "success";
		end, 0;
	end
end