function _connection.auth(serv, localport, remoteport)
local user = config.map_ip(serv)
+ local mac = nil
if not user then
- local mac = arpcache.get_mac(serv)
+ mac = arpcache.get_mac(serv)
if mac then
user = config.map_mac(mac)
end
end
-
+
if user == "*ident" then
user = ident.resolve(serv,localport,config.map_port(remoteport))
end