3 config = require "config"
4 ident = require "ident"
5 arpcache = require "arpcache"
7 function _connection.auth(serv, localport, remoteport)
9 local user = config.map_ip(serv)
12 local mac = arpcache.get_mac(serv)
14 user = config.map_mac(mac)
18 if user == "*ident" then
19 user = ident.resolve(serv,localport,config.map_port(remoteport))