mirror of
https://github.com/kepler155c/opus
synced 2025-10-19 17:57:39 +00:00
security start
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
local Logger = require('logger')
|
local Logger = require('logger')
|
||||||
|
|
||||||
local socketClass = { }
|
local socketClass = { }
|
||||||
local trustList = Util.readTable('.known_hosts') or { }
|
|
||||||
|
|
||||||
local exchange = {
|
local exchange = {
|
||||||
base = 11,
|
base = 11,
|
||||||
@@ -203,6 +202,7 @@ function trusted(msg, port)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local trustList = Util.readTable('.known_hosts') or { }
|
||||||
local pubKey = trustList[msg.shost]
|
local pubKey = trustList[msg.shost]
|
||||||
|
|
||||||
if pubKey then
|
if pubKey then
|
||||||
|
Reference in New Issue
Block a user