Debug address
This commit is contained in:
parent
fb115b280f
commit
6daddeab9e
|
@ -543,7 +543,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "golgi"
|
name = "golgi"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-std",
|
"async-std",
|
||||||
"async-stream 0.3.2",
|
"async-stream 0.3.2",
|
||||||
|
@ -553,6 +553,7 @@ dependencies = [
|
||||||
"kuska-handshake",
|
"kuska-handshake",
|
||||||
"kuska-sodiumoxide",
|
"kuska-sodiumoxide",
|
||||||
"kuska-ssb",
|
"kuska-ssb",
|
||||||
|
"log",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"sha2",
|
"sha2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "golgi"
|
name = "golgi"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Max Fowler <max@mfowler.info>", "Andrew Reid <glyph@mycelial.technology>"]
|
authors = ["Max Fowler <max@mfowler.info>", "Andrew Reid <glyph@mycelial.technology>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -16,6 +16,7 @@ async-std = "1.10.0"
|
||||||
async-stream = "0.3.2"
|
async-stream = "0.3.2"
|
||||||
base64 = "0.13.0"
|
base64 = "0.13.0"
|
||||||
futures = "0.3.21"
|
futures = "0.3.21"
|
||||||
|
log = "0.4"
|
||||||
hex = "0.4.3"
|
hex = "0.4.3"
|
||||||
kuska-handshake = { version = "0.2.0", features = ["async_std"] }
|
kuska-handshake = { version = "0.2.0", features = ["async_std"] }
|
||||||
kuska-sodiumoxide = "0.2.5-0"
|
kuska-sodiumoxide = "0.2.5-0"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
//! Sbot type and connection-related methods.
|
//! Sbot type and connection-related methods.
|
||||||
use async_std::net::TcpStream;
|
use async_std::net::TcpStream;
|
||||||
|
use log::debug;
|
||||||
|
|
||||||
use kuska_handshake::async_std::BoxStream;
|
use kuska_handshake::async_std::BoxStream;
|
||||||
use kuska_sodiumoxide::crypto::{auth, sign::ed25519};
|
use kuska_sodiumoxide::crypto::{auth, sign::ed25519};
|
||||||
|
@ -66,6 +67,7 @@ impl Sbot {
|
||||||
|
|
||||||
if address.starts_with(":") {
|
if address.starts_with(":") {
|
||||||
address = format!("127.0.0.1{}", address);
|
address = format!("127.0.0.1{}", address);
|
||||||
|
debug!("prefixing address: {}", address);
|
||||||
}
|
}
|
||||||
|
|
||||||
let network_id = if net_id.is_none() {
|
let network_id = if net_id.is_none() {
|
||||||
|
|
Loading…
Reference in New Issue