Comparison

plugins/mod_admin_telnet.lua @ 5029:7bcd79631492

mod_admin_telnet: Fix usage of incorrect variable
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Jul 2012 01:25:01 +0100
parent 5028:10a69a7e4545
child 5030:9962fc19f9e9
comparison
equal deleted inserted replaced
5028:10a69a7e4545 5029:7bcd79631492
873 if not close_interface or close_interface == interface then 873 if not close_interface or close_interface == interface then
874 if ports[close_port] then 874 if ports[close_port] then
875 self.session.print("Closing ["..interface.."]:"..close_port.."..."); 875 self.session.print("Closing ["..interface.."]:"..close_port.."...");
876 local ok, err = portmanager.close(interface, close_port) 876 local ok, err = portmanager.close(interface, close_port)
877 if not ok then 877 if not ok then
878 self.session.print("Failed to close "..interface.." "..port..": "..err); 878 self.session.print("Failed to close "..interface.." "..close_port..": "..err);
879 else 879 else
880 n_closed = n_closed + 1; 880 n_closed = n_closed + 1;
881 end 881 end
882 end 882 end
883 end 883 end