diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-18 04:07:05 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-18 04:14:45 +0100 |
commit | eb0f8a028cf7ddb1b708ee97e6a9c777b45d4d4f (patch) | |
tree | d923be9e25130cec96209be2fb6db4668c7b16a6 /plugins/http.c | |
parent | 7cb6fcdaff2237cd24cf22fbc739192704838b6d (diff) | |
download | ponymap-eb0f8a028cf7ddb1b708ee97e6a9c777b45d4d4f.tar.gz ponymap-eb0f8a028cf7ddb1b708ee97e6a9c777b45d4d4f.tar.xz ponymap-eb0f8a028cf7ddb1b708ee97e6a9c777b45d4d4f.zip |
Implement a Lua 5.3 plugin loader plugin
Also implemented SOCKS detection in said language.
There are probably going to be some bugs.
The program is no longer Valgrind-clean, as that would require plugin
deinitialization, in which there is very little point.
Diffstat (limited to 'plugins/http.c')
-rw-r--r-- | plugins/http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/http.c b/plugins/http.c index 1aa2bd9..a6a58e2 100644 --- a/plugins/http.c +++ b/plugins/http.c @@ -94,8 +94,10 @@ on_headers_complete (http_parser *parser) } static void * -scan_init (struct unit *u) +scan_init (struct service *service, struct unit *u) { + (void) service; + struct str hello; str_init (&hello); str_append_printf (&hello, "GET / HTTP/1.0\r\n" |