-bool setup_myself_reloadable(void) {
- char *proxy = NULL;
- char *rmode = NULL;
- char *fmode = NULL;
- char *bmode = NULL;
- char *afname = NULL;
- char *address = NULL;
- char *space;
- bool choice;
-
- free(scriptinterpreter);
- scriptinterpreter = NULL;
- get_config_string(lookup_config(config_tree, "ScriptsInterpreter"), &scriptinterpreter);
-
-
- free(scriptextension);
- if(!get_config_string(lookup_config(config_tree, "ScriptsExtension"), &scriptextension))
- scriptextension = xstrdup("");
-
- get_config_string(lookup_config(config_tree, "Proxy"), &proxy);
- if(proxy) {
- if((space = strchr(proxy, ' ')))
- *space++ = 0;
-
- if(!strcasecmp(proxy, "none")) {
- proxytype = PROXY_NONE;
- } else if(!strcasecmp(proxy, "socks4")) {
- proxytype = PROXY_SOCKS4;
- } else if(!strcasecmp(proxy, "socks4a")) {
- proxytype = PROXY_SOCKS4A;
- } else if(!strcasecmp(proxy, "socks5")) {
- proxytype = PROXY_SOCKS5;
- } else if(!strcasecmp(proxy, "http")) {
- proxytype = PROXY_HTTP;
- } else if(!strcasecmp(proxy, "exec")) {
- proxytype = PROXY_EXEC;
- } else {
- logger(DEBUG_ALWAYS, LOG_ERR, "Unknown proxy type %s!", proxy);
- return false;
- }