diff --git a/shared/plugin.go b/shared/plugin.go index c3adc40..2400304 100644 --- a/shared/plugin.go +++ b/shared/plugin.go @@ -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, } }