diff --git a/Makefile b/Makefile index 1238ca5..f708de9 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,7 @@ bin/sesimos: bin/server.o bin/logger.o bin/cache_handler.o bin/async.o bin/worke bin/worker/fastcgi_handler.o bin/worker/local_handler.o bin/worker/proxy_handler.o \ bin/lib/http_static.o bin/res/default.o bin/res/proxy.o bin/res/style.o \ bin/res/icon_error.o bin/res/icon_info.o bin/res/icon_success.o bin/res/icon_warning.o \ + bin/res/globe.o \ bin/lib/compress.o bin/lib/config.o bin/lib/fastcgi.o bin/lib/geoip.o \ bin/lib/http.o bin/lib/proxy.o bin/lib/sock.o bin/lib/uri.o \ bin/lib/utils.o bin/lib/websocket.o bin/lib/mpmc.o bin/lib/list.o diff --git a/res/globe.svg b/res/globe.svg new file mode 100644 index 0000000..d257054 --- /dev/null +++ b/res/globe.svg @@ -0,0 +1,3 @@ + + + diff --git a/res/proxy.html b/res/proxy.html index 1ed6a86..ff4856e 100644 --- a/res/proxy.html +++ b/res/proxy.html @@ -2,7 +2,7 @@
Client - + Your Browser
diff --git a/src/lib/res.h b/src/lib/res.h index 658613d..cb74fa2 100644 --- a/src/lib/res.h +++ b/src/lib/res.h @@ -25,6 +25,9 @@ #define http_icon_warning _binary_bin_res_icon_warning_txt_start #define http_icon_warning_size ((unsigned int) (_binary_bin_res_icon_warning_txt_end - _binary_bin_res_icon_warning_txt_start) - 1) +#define http_icon_globe _binary_bin_res_globe_txt_start +#define http_icon_globe_size ((unsigned int) (_binary_bin_res_globe_txt_end - _binary_bin_res_globe_txt_start) - 1) + typedef struct { const char *name; const char *type; @@ -53,4 +56,7 @@ extern const char _binary_bin_res_icon_success_txt_end[]; extern const char _binary_bin_res_icon_warning_txt_start[]; extern const char _binary_bin_res_icon_warning_txt_end[]; +extern const char _binary_bin_res_globe_txt_start[]; +extern const char _binary_bin_res_globe_txt_end[]; + #endif //SESIMOS_RES_H diff --git a/src/worker/request_handler.c b/src/worker/request_handler.c index 7d13a2d..0c3e2e5 100644 --- a/src/worker/request_handler.c +++ b/src/worker/request_handler.c @@ -143,6 +143,7 @@ static int request_handler(client_ctx_t *ctx) { {"icon-info.svg", "image/svg+xml; charset=UTF-8", http_icon_info, http_icon_info_size}, {"icon-success.svg", "image/svg+xml; charset=UTF-8", http_icon_success, http_icon_success_size}, {"icon-warning.svg", "image/svg+xml; charset=UTF-8", http_icon_warning, http_icon_warning_size}, + {"globe.svg", "image/svg+xml; charset=UTF-8", http_icon_globe, http_icon_globe_size}, }; res->status = http_get_status(404);