notes about private realm registrations and multiple primary directories.
This commit is contained in:
parent
d0e7fc76cd
commit
1383915f86
@ -76,8 +76,8 @@ function ratenotif_run($argv, $argc){
|
||||
if($j && $j['success'] && is_array($j['directories'])) {
|
||||
|
||||
foreach($j['directories'] as $h) {
|
||||
// if($h == z_root())
|
||||
// continue;
|
||||
if($h == z_root())
|
||||
continue;
|
||||
|
||||
$hash = random_string();
|
||||
$n = zot_build_packet($channel,'notify',null,null,$hash);
|
||||
|
@ -1,6 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* With args, register a directory server for this realm
|
||||
* With no args, return a JSON array of directory servers for this realm
|
||||
|
||||
* FIXME: Not yet implemented: Some realms may require authentication to join their realm.
|
||||
* The RED_GLOBAL realm does not require authentication.
|
||||
* We would then need a flag in the site table to indicate that they've been
|
||||
* validated by the PRIMARY directory for that realm. Sites claiming to be PRIMARY
|
||||
* but are not the realm PRIMARY will be marked invalid.
|
||||
*/
|
||||
|
||||
|
||||
function regdir_init(&$a) {
|
||||
|
||||
$result = array('success' => false);
|
||||
@ -32,7 +44,7 @@ function regdir_init(&$a) {
|
||||
json_return_and_die($result);
|
||||
}
|
||||
|
||||
$f = zot_finger('sys@' . $m['host']);
|
||||
$f = zot_finger('[system]@' . $m['host']);
|
||||
if($f['success']) {
|
||||
$j = json_decode($f['body'],true);
|
||||
if($j['success'] && $j['guid']) {
|
||||
|
Reference in New Issue
Block a user