HandshakeConfig MagicCookieKey

This commit is contained in:
李子铭 2024-08-08 09:51:17 +08:00
parent ff0ff17055
commit a7d6a128aa
1 changed files with 3 additions and 3 deletions

View File

@ -21,10 +21,10 @@ func PluginSet(opts ...*Plugin) plugin.PluginSet {
return plugins
}
func HandshakeConfig(version uint, value string) plugin.HandshakeConfig {
func HandshakeConfig(version uint, cookieKey, cookieValue string) plugin.HandshakeConfig {
return plugin.HandshakeConfig{
ProtocolVersion: version,
MagicCookieKey: "BASIC_PLUGIN",
MagicCookieValue: value,
MagicCookieKey: cookieKey,
MagicCookieValue: cookieValue,
}
}