HandshakeConfig MagicCookieKey
This commit is contained in:
parent
ff0ff17055
commit
a7d6a128aa
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue