From c5ce0254881b5fc4aa39257a9a8ed8cb80e76158 Mon Sep 17 00:00:00 2001 From: "psyc://loupsycedyglgamf.onion/~lynX" Date: Wed, 4 Apr 1984 00:44:05 +0000 Subject: [PATCH] DNS is no longer a design criterion for PSYC - use the IP --- world/net/spyc/dispatch.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/world/net/spyc/dispatch.i b/world/net/spyc/dispatch.i index e031690..709439a 100644 --- a/world/net/spyc/dispatch.i +++ b/world/net/spyc/dispatch.i @@ -234,12 +234,16 @@ void dispatch(mapping rvars, mapping evars, mixed method, mixed body) { string source; mixed target; if (!vars["_source"]) { +#if 0 // FIXME: where to set netloc in active if (!netloc) { // set in sender after _request_features // FIXME: this is wrong DISPATCHERROR("Did you forget to request circuit features?"); } source = netloc; +#else + source = netloc || query_ip_name(ME); +#endif } else { // FIXME: a macro NORMALIZE_UNIFORM that may do lower_case please // not a simple lower_case