Comparison

plugins/mod_proxy65.lua @ 9146:6bd3602a70e2

mod_proxy65: Split module:shared() into multiple calls, multiple params may be deprecated soon
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Aug 2018 21:14:43 +0100
parent 8728:41c959c5c84b
child 9645:cc642c9c5ad5
comparison
equal deleted inserted replaced
9145:51c5dd7a8ab9 9146:6bd3602a70e2
14 local sha1 = require "util.hashes".sha1; 14 local sha1 = require "util.hashes".sha1;
15 local b64 = require "util.encodings".base64.encode; 15 local b64 = require "util.encodings".base64.encode;
16 local server = require "net.server"; 16 local server = require "net.server";
17 local portmanager = require "core.portmanager"; 17 local portmanager = require "core.portmanager";
18 18
19 local sessions, transfers = module:shared("sessions", "transfers"); 19 local sessions = module:shared("sessions");
20 local transfers = module:shared("transfers");
20 local max_buffer_size = 4096; 21 local max_buffer_size = 4096;
21 22
22 local listener = {}; 23 local listener = {};
23 24
24 function listener.onincoming(conn, data) 25 function listener.onincoming(conn, data)