From b05a30248a49913b6d4c09cc2f76c9527d88935a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 21 Nov 2020 21:52:10 +0100 Subject: Added magic DNS algorithm Coffein helped me write this lol. It's actually pretty dumb but WTH - it works! --- apps/browser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/browser.c b/apps/browser.c index b434c7c..c51b0a4 100644 --- a/apps/browser.c +++ b/apps/browser.c @@ -72,9 +72,7 @@ void on_submit(void *event, struct element *box) u32 ip = 0; if (!ip_pton(url, &ip)) { - char *dns[2]; - dns_split(url, dns); - ip = dns_request(dns[0], dns[1]); + ip = dns_request(url); } struct element_text_box *l = output->data; -- cgit v1.2.3