Commit Diff


commit - c9dc4bc68ef81f382a23f0ce29b0bada6dacc9c1
commit + ee80262d3fcd6cfa7551c0baebdcf792e1bdae95
blob - c4d84f709240345cf2bdbc495effb636c7eaa297
blob + b510c250deb70e7c3579587e0f08a1b8a7b4888d
--- proxy.c
+++ proxy.c
@@ -486,7 +486,8 @@ done:
 	bufferevent_enable(clt->clt_bev, EV_READ|EV_WRITE);
 
 	/* TODO: compute the URL */
-	if (evbuffer_add_printf(out, "gemini://localhost/\r\n") == -1) {
+	if (evbuffer_add_printf(out, "gemini://%s/%s\r\n",
+	    clt->clt_pc->proxy_name, clt->clt_path_info) == -1) {
 		log_warn("bufferevent_printf failed");
 		goto err;
 	}