under options.c i find this code in line4413.
Code: Select all
else if (streq (p[0], "http-proxy-option") && p[1])
{
struct http_proxy_options *ho;
VERIFY_PERMISSION (OPT_P_GENERAL|OPT_P_CONNECTION);
ho = init_http_options_if_undefined (options);
if (streq (p[1], "VERSION") && p[2])
{
ho->http_version = p[2];
}
else if (streq (p[1], "AGENT") && p[2])
{
ho->user_agent = p[2];
}
I just need to add other Options like X-Online-Host and Host inside the program it self. What part of the source should i modify and sample of line of code to add?
And also i want to disable remote from the option to include remote server inside the program it self. I just have to include a variable with my remote port and ip but where do i edit remote server? thanks.