diff --git a/go.mod b/go.mod index 9af3cd6..5a3172b 100644 --- a/go.mod +++ b/go.mod @@ -29,3 +29,5 @@ require ( golang.org/x/tools v0.1.10 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect ) + +replace cwtch.im/cwtch => /home/sarah/workspace/src/cwtch.im/cwtch \ No newline at end of file diff --git a/utils/eventHandler.go b/utils/eventHandler.go index 9a7ba6d..0e9b7a2 100644 --- a/utils/eventHandler.go +++ b/utils/eventHandler.go @@ -143,6 +143,7 @@ func (eh *EventHandler) handleAppBusEvent(e *event.Event) string { profile.SetScopedZonedAttribute(attr.LocalScope, attr.ProfileZone, constants2.PeerOnline, event.False) eh.app.AddPeerPlugin(onion, plugins.CONNECTIONRETRY) eh.app.AddPeerPlugin(onion, plugins.NETWORKCHECK) + eh.app.AddPeerPlugin(onion, plugins.ANTISPAM) // If the user has chosen to block unknown profiles // then explicitly configure the protocol engine to do so..