commit aa78981f27f457db5a25aa8309f2611338779168
parent 9ecb1663729ac0b9377c70137f61ca990c5694a7
Author: hhvn <dev@hhvn.uk>
Date: Mon, 17 Jan 2022 23:00:28 +0000
zygo.c: set port without /
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/zygo.c b/zygo.c
@@ -247,6 +247,9 @@ uritoelem(const char *uri) {
if (!ret->server) {
ret->server = estrdup(tmp);
tmp += strlen(tmp);
+ } else if (!ret->port) {
+ ret->port = estrdup(tmp);
+ tmp += strlen(tmp);
}
ret->port = ret->port ? ret->port : estrdup("70");