Reverse proxy printing debug message always

This commit is contained in:
2021-01-09 11:50:44 +01:00
parent 413ab2aa5b
commit 7b562c4b78

View File

@ -23,11 +23,11 @@ int rev_proxy_init(http_req *req, http_res *res, host_config *conf, sock *client
goto rev_proxy; goto rev_proxy;
} }
retry:
if (rev_proxy.socket != 0) { if (rev_proxy.socket != 0) {
print(BLUE_STR "Closing proxy connection" CLR_STR);
sock_close(&rev_proxy); sock_close(&rev_proxy);
} }
retry:
retry = 0; retry = 0;
tries++; tries++;
@ -225,12 +225,7 @@ int rev_proxy_init(http_req *req, http_res *res, host_config *conf, sock *client
return 0; return 0;
proxy_err: proxy_err:
print(BLUE_STR "Closing proxy connection" CLR_STR); if (retry) goto retry;
sock_close(&rev_proxy);
if (retry) {
goto retry;
}
return -1; return -1;
} }