fea: socket: support to negotiate key

This commit is contained in:
Daniel Ding
2022-10-01 08:21:53 +08:00
parent 1f5bdbe45c
commit 4a6eaeb802
24 changed files with 315 additions and 128 deletions

View File

@@ -135,7 +135,7 @@ func (h *Http) LoadToken() {
}
}
if token == "" {
token = libol.GenRandom(32)
token = libol.GenString(32)
}
h.SetToken(token)
}