- // Add new header about paraz2 version, host, remote client address, etc.
-
- hp = rq->headers;
- hp = http_header_append(c, hp, PACKAGE_NAME "-version", PACKAGE_VERSION);
- //hp = http_header_append(c, hp, PACKAGE_NAME "-server-host", ser->host);
- //hp = http_header_append(c, hp, PACKAGE_NAME "-server-port", ser->port);
- //hp = http_header_append(c, hp, PACKAGE_NAME "-remote-host", "blabla");
- //hp = http_header_append(c, hp, PACKAGE_NAME "-remote-port", "blabla");
+ // Add new header about paraz2 version, host, remote client address, etc.
+ {
+
+ hp = rq->headers;
+ hp = http_header_append(c, hp,
+ PACKAGE_NAME "-version", PACKAGE_VERSION);
+ hp = http_header_append(c, hp,
+ PACKAGE_NAME "-server-host", server_host);
+ //sprintf(server_port, "%d", ser->port);
+ hp = http_header_append(c, hp,
+ PACKAGE_NAME "-server-port", server_port);
+ hp = http_header_append(c, hp,
+ PACKAGE_NAME "-remote-addr",
+ c->iochan->addr_str);
+ }