From 15ab70762e4b0a78e6b0186771c726da38629b21 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 4 Sep 2022 12:51:14 +0200 Subject: user/netstack: make the verb the first component of the path This makes filtering by the verb much easier, while filtering by the local ip only slightly harder. `whitelist /net/connect` --- src/user/app/httpd/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/httpd') diff --git a/src/user/app/httpd/httpd.c b/src/user/app/httpd/httpd.c index 1aaebc5..9141a39 100644 --- a/src/user/app/httpd/httpd.c +++ b/src/user/app/httpd/httpd.c @@ -65,7 +65,7 @@ static void handle(FILE *c) { } int main(int argc, char **argv) { - const char *path = (argc > 1) ? argv[1] : "/net/0.0.0.0/listen/tcp/80"; + const char *path = (argc > 1) ? argv[1] : "/net/listen/0.0.0.0/tcp/80"; handle_t conn; for (;;) { conn = _syscall_open(path, strlen(path), 0); -- cgit v1.2.3