Debug address

This commit is contained in:
notplants 2022-05-26 23:03:43 +02:00
parent fb115b280f
commit 6daddeab9e
3 changed files with 6 additions and 2 deletions

3
Cargo.lock generated
View File

@ -543,7 +543,7 @@ dependencies = [
[[package]]
name = "golgi"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"async-std",
"async-stream 0.3.2",
@ -553,6 +553,7 @@ dependencies = [
"kuska-handshake",
"kuska-sodiumoxide",
"kuska-ssb",
"log",
"serde",
"serde_json",
"sha2",

View File

@ -1,6 +1,6 @@
[package]
name = "golgi"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
authors = ["Max Fowler <max@mfowler.info>", "Andrew Reid <glyph@mycelial.technology>"]
readme = "README.md"
@ -16,6 +16,7 @@ async-std = "1.10.0"
async-stream = "0.3.2"
base64 = "0.13.0"
futures = "0.3.21"
log = "0.4"
hex = "0.4.3"
kuska-handshake = { version = "0.2.0", features = ["async_std"] }
kuska-sodiumoxide = "0.2.5-0"

View File

@ -1,5 +1,6 @@
//! Sbot type and connection-related methods.
use async_std::net::TcpStream;
use log::debug;
use kuska_handshake::async_std::BoxStream;
use kuska_sodiumoxide::crypto::{auth, sign::ed25519};
@ -66,6 +67,7 @@ impl Sbot {
if address.starts_with(":") {
address = format!("127.0.0.1{}", address);
debug!("prefixing address: {}", address);
}
let network_id = if net_id.is_none() {