security start

This commit is contained in:
kepler155c@gmail.com 2017-05-05 08:06:07 -04:00
parent cc4f8a0afc
commit bc5cc5e97b
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,6 @@
local Logger = require('logger')
local socketClass = { }
local trustList = Util.readTable('.known_hosts') or { }
local exchange = {
base = 11,
@ -203,6 +202,7 @@ function trusted(msg, port)
return true
end
local trustList = Util.readTable('.known_hosts') or { }
local pubKey = trustList[msg.shost]
if pubKey then