mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-12-05 00:22:19 +00:00
DNS is no longer a design criterion for PSYC - use the IP
This commit is contained in:
parent
9731fb9ff6
commit
c5ce025488
@ -234,12 +234,16 @@ void dispatch(mapping rvars, mapping evars, mixed method, mixed body) {
|
|||||||
string source;
|
string source;
|
||||||
mixed target;
|
mixed target;
|
||||||
if (!vars["_source"]) {
|
if (!vars["_source"]) {
|
||||||
|
#if 0
|
||||||
// FIXME: where to set netloc in active
|
// FIXME: where to set netloc in active
|
||||||
if (!netloc) { // set in sender after _request_features
|
if (!netloc) { // set in sender after _request_features
|
||||||
// FIXME: this is wrong
|
// FIXME: this is wrong
|
||||||
DISPATCHERROR("Did you forget to request circuit features?");
|
DISPATCHERROR("Did you forget to request circuit features?");
|
||||||
}
|
}
|
||||||
source = netloc;
|
source = netloc;
|
||||||
|
#else
|
||||||
|
source = netloc || query_ip_name(ME);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
// FIXME: a macro NORMALIZE_UNIFORM that may do lower_case please
|
// FIXME: a macro NORMALIZE_UNIFORM that may do lower_case please
|
||||||
// not a simple lower_case
|
// not a simple lower_case
|
||||||
|
Loading…
Reference in New Issue
Block a user