phroxy

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/phroxy.git
Log | Files | Refs | LICENSE

commit 9e05ae9780fcb1048c273226bcd03a72a3571c96
parent 5b689675cc8bd3a8c3dd5fa25f8671035ab2b293
Author: Willy Goiffon <dev@z3bra.org>
Date:   Sat, 12 Sep 2020 00:10:08 +0200

Differenciate global host variable from local ones

Diffstat:
Mconfig.def.h | 2+-
Mphroxy.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -1,4 +1,4 @@ -const char *host = "z3bra.org"; +const char *http_host = "z3bra.org"; const char *foot = "</pre></body></html>"; const char *head = "<!DOCTYPE HTML>" diff --git a/phroxy.c b/phroxy.c @@ -201,7 +201,7 @@ printheaders(char *ctype) if (ctype) printf("Content-Type: %s\r\n", ctype); printf("Server: phroxy\r\n"); - printf("Host: %s\r\n", host); + printf("Host: %s\r\n", http_host); printf("Connection: close\r\n"); }