feat: allow tls

This commit is contained in:
ftbsc 2023-04-12 18:12:38 +02:00
parent 7ae5329ce5
commit 1a0c649845
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ required-features = ["nvim"]
[dependencies]
# core
tracing = "0.1"
tonic = "0.9"
tonic = { version = "0.9", features = ["tls", "tls-roots"] }
prost = "0.11.8"
md5 = "0.7.0"
uuid = { version = "1.3.1", features = ["v4"] }

View file

@ -33,7 +33,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.with_max_level(if args.debug { tracing::Level::DEBUG } else { tracing::Level::INFO })
.init();
info!("starting server");
info!("binding server on {}", args.host);
Server::builder()
.add_service(BufferService::new().server())