The proxy override global and now local variable has not been configurable
ever. So this code can be safely removed.
const char *uid = 0;
int session_timeout = 60;
const char *listener_override = 0;
const char *uid = 0;
int session_timeout = 60;
const char *listener_override = 0;
- const char *proxy_override = 0;
const char *config_fname = 0;
struct conf_config *config = 0;
int test_mode = 0;
const char *config_fname = 0;
struct conf_config *config = 0;
int test_mode = 0;
- ret = config_start_listeners(config, listener_override, proxy_override);
+ ret = config_start_listeners(config, listener_override);
if (ret)
return ret; /* error starting http listener */
if (ret)
return ret; /* error starting http listener */
}
int config_start_listeners(struct conf_config *conf,
}
int config_start_listeners(struct conf_config *conf,
- const char *listener_override,
- const char *proxy_override)
+ const char *listener_override)
{
struct conf_server *ser;
for (ser = conf->servers; ser; ser = ser->next)
{
struct conf_server *ser;
for (ser = conf->servers; ser; ser = ser->next)
return -1;
w = wrbuf_alloc();
return -1;
w = wrbuf_alloc();
- if (proxy_override)
- wrbuf_puts(w, proxy_override);
- else if (ser->proxy_host || ser->proxy_port)
+ if (ser->proxy_host || ser->proxy_port)
{
if (ser->proxy_host)
wrbuf_puts(w, ser->proxy_host);
{
if (ser->proxy_host)
wrbuf_puts(w, ser->proxy_host);
int config_start_listeners(struct conf_config *conf,
int config_start_listeners(struct conf_config *conf,
- const char *listener_override,
- const char *proxy_override);
+ const char *listener_override);
void config_stop_listeners(struct conf_config *conf);
void config_stop_listeners(struct conf_config *conf);