diff options
author | dzwdz | 2022-09-04 12:51:14 +0200 |
---|---|---|
committer | dzwdz | 2022-09-04 12:51:14 +0200 |
commit | 15ab70762e4b0a78e6b0186771c726da38629b21 (patch) | |
tree | 94e6dbae1ace74453cf67616d3d84b4e9fbae6ec /src/user/app/httpd | |
parent | f71219e97a50fb0e3d7110f7706f48994bb0eacd (diff) |
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`
Diffstat (limited to 'src/user/app/httpd')
-rw-r--r-- | src/user/app/httpd/httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |