mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-17 07:52:26 +08:00
协议加密密钥生成算法
This commit is contained in:
@@ -66,12 +66,12 @@ func (k *KcpConnectManager) Start() {
|
||||
go func() {
|
||||
// key
|
||||
var err error = nil
|
||||
k.dispatchKey, err = os.ReadFile("static/dispatchKey.bin")
|
||||
k.dispatchKey, err = os.ReadFile("key/dispatchKey.bin")
|
||||
if err != nil {
|
||||
logger.LOG.Error("open dispatchKey.bin error")
|
||||
return
|
||||
}
|
||||
k.secretKey, err = os.ReadFile("static/secretKey.bin")
|
||||
k.secretKey, err = os.ReadFile("key/secretKey.bin")
|
||||
if err != nil {
|
||||
logger.LOG.Error("open secretKey.bin error")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user