diff options
author | iwojim0 <iwo_jim0@protonmail.com> | 2024-03-09 14:37:54 +0000 |
---|---|---|
committer | iwojim0 <iwo_jim0@protonmail.com> | 2024-03-09 14:37:54 +0000 |
commit | 7312f4ce51100d4ed98988cb3af0ab06e4fba53c (patch) | |
tree | b9fe2c67d8d98605d5376bbad6ffe87ef29c1990 /data.c | |
parent | 951e6b23151d298d9babeec81bc9926c11bdb3b3 (diff) |
Ability to federate with hidden networks #93 (update for v2.49)
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -67,7 +67,7 @@ int srv_open(char *basedir, int auto_upgrade) if (host == NULL || prefix == NULL) error = xs_str_new("ERROR: cannot get server data"); else { - srv_baseurl = xs_fmt("https://%s%s", host, prefix); + srv_baseurl = xs_fmt("http://%s%s", host, prefix); dbglevel = (int) xs_number_get(dbglvl); @@ -1944,7 +1944,8 @@ xs_list *inbox_list(void) xs_str *_instance_block_fn(const char *instance) { - xs *s1 = xs_replace(instance, "https:/" "/", ""); + xs *s = xs_replace(instance, "http:/" "/", ""); + xs *s1 = xs_replace(s, "https:/" "/", ""); xs *l = xs_split(s1, "/"); char *p = xs_list_get(l, 0); xs *md5 = xs_md5_hex(p, strlen(p)); |