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)
13 mac = arpcache.get_mac(serv)
15 user = config.map_mac(mac)
19 if user == "*ident" then
20 user = ident.resolve(serv,localport,config.map_port(remoteport))