From bc5cc5e97bd27e1aa7b6d9b1bc2605de54b86812 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Fri, 5 May 2017 08:06:07 -0400 Subject: [PATCH] security start --- sys/apis/socket.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/apis/socket.lua b/sys/apis/socket.lua index 1913d49..0f26df7 100644 --- a/sys/apis/socket.lua +++ b/sys/apis/socket.lua @@ -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