From 58383f07af80dfd5b5c18e5158291c3d8caefbe7 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Thu, 13 Dec 2007 18:33:20 +0000 Subject: keep track of whether the identity being discovered is XRI Signed-off-by: Michael Krelin --- (limited to 'lib/discovery.cc') diff --git a/lib/discovery.cc b/lib/discovery.cc index a35ce32..1f23ff1 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -95,6 +95,7 @@ namespace opkele { string id(identity,fsc,lsc-fsc+1); if(strchr(i_leaders,id[0])) { result.normalized_id = id; + result.xri_identity = true; /* TODO: further canonicalize xri identity? Like folding case or whatever... */ discover_at( result, @@ -106,6 +107,7 @@ namespace opkele { if(result.xrd.canonical_ids.empty()) throw opkele::failed_discovery(OPKELE_CP_ "No CanonicalID for XRI identity found"); }else{ + result.xri_identity = false; if(id.find("://")==string::npos) id.insert(0,"http://"); string::size_type fp = id.find('#'); -- cgit v0.9.0.2