summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.c b/main.c
index 87aa2c1..a5921d8 100644
--- a/main.c
+++ b/main.c
@@ -361,6 +361,14 @@ int main(int argc, char *argv[])
361 if (strcmp(cmd, "ping") == 0) { /** **/ 361 if (strcmp(cmd, "ping") == 0) { /** **/
362 xs *actor_o = NULL; 362 xs *actor_o = NULL;
363 363
364 if (!xs_startswith(url, "https:/")) {
365 /* try to resolve via webfinger */
366 if (!valid_status(webfinger_request(url, &url, NULL))) {
367 srv_log(xs_fmt("cannot resolve %s via webfinger", url));
368 return 1;
369 }
370 }
371
364 if (valid_status(actor_request(&snac, url, &actor_o))) { 372 if (valid_status(actor_request(&snac, url, &actor_o))) {
365 xs *msg = msg_ping(&snac, url); 373 xs *msg = msg_ping(&snac, url);
366 374