Add TLS support for the forwarder

This commit configures noteguard and dependencies to be built with TLS
support, to allow it to forward notes to TLS-enabled relays.

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Closes: https://github.com/damus-io/noteguard/issues/13
This commit is contained in:
Daniel D’Aquino 2024-08-23 15:34:51 -07:00
parent 8e1bb0363f
commit 0c21ea0f03
2 changed files with 219 additions and 1 deletions

View file

@ -12,7 +12,7 @@ serde_json = "1.0"
toml = "0.5"
# forwarder deps
tokio-tungstenite = { version = "0.23.1", optional = true }
tokio-tungstenite = { version = "0.23.1", optional = true, features = ["native-tls"] }
tokio = { version = "1.38.0", features = ["macros", "time", "sync", "rt-multi-thread"], optional = true }
futures-util = { version = "0.3.30", optional = true }
log = "0.4.22"