HandshakeConfig MagicCookieKey
This commit is contained in:
parent
ff0ff17055
commit
a7d6a128aa
|
@ -21,10 +21,10 @@ func PluginSet(opts ...*Plugin) plugin.PluginSet {
|
||||||
return plugins
|
return plugins
|
||||||
}
|
}
|
||||||
|
|
||||||
func HandshakeConfig(version uint, value string) plugin.HandshakeConfig {
|
func HandshakeConfig(version uint, cookieKey, cookieValue string) plugin.HandshakeConfig {
|
||||||
return plugin.HandshakeConfig{
|
return plugin.HandshakeConfig{
|
||||||
ProtocolVersion: version,
|
ProtocolVersion: version,
|
||||||
MagicCookieKey: "BASIC_PLUGIN",
|
MagicCookieKey: cookieKey,
|
||||||
MagicCookieValue: value,
|
MagicCookieValue: cookieValue,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue