chore(js): publish @synonymdev/pubky@0.4.0-rc3

This commit is contained in:
nazeh
2025-01-17 14:58:18 +03:00
parent f4325bbc3f
commit 130eca3b2d
2 changed files with 6 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
"name": "@synonymdev/pubky",
"type": "module",
"description": "Pubky client",
"version": "0.4.0-rc2",
"version": "0.4.0-rc3",
"license": "MIT",
"repository": {
"type": "git",

View File

@@ -150,8 +150,11 @@ impl Client {
url.set_port(Some(http_port))
.expect("coultdn't use the resolved endpoint's port");
} else {
url.set_port(Some(e.port()))
.expect("coultdn't use the resolved endpoint's port");
// TODO: where does port zero come from?
if e.port() != 0 {
url.set_port(Some(e.port()))
.expect("coultdn't use the resolved endpoint's port");
}
}
url.set_host(Some(e.domain()))