diff --git a/src/socket/protocol.go b/src/socket/protocol.go index 54d3b6e..e350e7b 100644 --- a/src/socket/protocol.go +++ b/src/socket/protocol.go @@ -59,7 +59,7 @@ func (s *Fail2BanSocket) read() (interface{}, error) { unpickler := pickle.NewUnpickler(bufReader) unpickler.FindClass = func(module, name string) (interface{}, error) { - if module == "builtins" && name == "str" { + if (module == "builtins" || module == "__builtin__") && name == "str" { return &Py_builtins_str{}, nil } return nil, fmt.Errorf("class not found: " + module + " : " + name)