commit ebdcadbfd9e4dd7f06b975b326745e5849f9ee70 from: Omar Polo date: Fri Mar 12 22:15:15 2021 UTC plug the sandbox commit - 677d90f7f8a60dc43b6d7be837c5b25b1cde1dbc commit + ebdcadbfd9e4dd7f06b975b326745e5849f9ee70 blob - e028646abca1accf7101c1fbf4a72d7dccda8043 blob + 1d50850bf13c744067574b93823384bd65c74a69 --- Makefile.am +++ Makefile.am @@ -7,6 +7,7 @@ telescope_SOURCES = compat.h \ mime.c \ pages.c \ parser.c \ + sandbox.c \ telescope.c \ telescope.h \ textplain.c \ blob - 437e23e1a780902fc071dc50f6ebe40869eab779 blob + 33a22ca28746f0fdf4d3aec2f779f5c33e30cf38 --- gemini.c +++ gemini.c @@ -533,6 +533,8 @@ client_main(struct imsgbuf *b) event_set(&imsgev, ibuf->fd, EV_READ | EV_PERSIST, dispatch_imsg, ibuf); event_add(&imsgev, NULL); + + sandbox_network_process(); event_dispatch(); return 0; blob - 06da994b977854b39d7e43dddeef692a8e8c6d6d blob + 63c9cc3e4fa8ef04821a5fc9a38f8eb4a981a1b4 --- telescope.h +++ telescope.h @@ -54,6 +54,7 @@ struct line { enum line_type type; char *line; char *alt; + int flags; TAILQ_ENTRY(line) lines; }; @@ -132,6 +133,9 @@ extern const char *err_pages[70]; int parser_append(struct parser*, const char*, size_t); int parser_set_buf(struct parser*, const char*, size_t); +/* sandbox.c */ +void sandbox_network_process(void); + /* telescope.c */ void load_about_url(struct tab*, const char*); void load_gemini_url(struct tab*, const char*);