Compare commits

...

4 Commits

Author SHA1 Message Date
Sarah Jamie Lewis 055e1d65a1 Merge pull request 'Update 'README.md'' (#117) from sarah-patch-3 into trunk
continuous-integration/drone/push Build is pending Details
Reviewed-on: #117
Reviewed-by: Dan Ballard <dan@openprivacy.ca>
2023-06-16 21:07:15 +00:00
Sarah Jamie Lewis 8a7c647ea0 Update 'README.md'
continuous-integration/drone/pr Build is pending Details
2023-06-16 21:07:09 +00:00
Sarah Jamie Lewis 5871a2c077 Update 'README.md'
continuous-integration/drone/pr Build is pending Details
2023-06-16 21:05:32 +00:00
Sarah Jamie Lewis ae179fab72 Ensure Block Unknown Connections Settings is Respected on Protocol Engine Restart
continuous-integration/drone/pr Build is running Details
continuous-integration/drone/push Build is passing Details
2023-02-08 13:51:09 -08:00
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# NOTE: libcwtch-go has been deprecated in favour of [autobindings](https://git.openprivacy.ca/cwtch.im/autobindings). This repository has been archived and is no longer maintained.
# libcwtch-go
C-bindings for the Go Cwtch Library.

View File

@ -611,6 +611,14 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
case event.ProtocolEngineCreated:
// TODO this code should be moved into Cwtch during the API officialization...
settings := ReadGlobalSettings()
// ensure that protocol engine respects blocking settings...
if settings.BlockUnknownConnections {
profile.BlockUnknownConnections()
} else {
profile.AllowUnknownConnections()
}
// Now that the Peer Engine is Activated, Share Files
key, exists := profile.GetScopedZonedAttribute(attr.PublicScope, attr.ProfileZone, constants.CustomProfileImageKey)
if exists {