author | Michael Krelin <hacker@klever.net> | 2007-12-13 18:33:20 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-12-13 18:37:33 (UTC) |
commit | 58383f07af80dfd5b5c18e5158291c3d8caefbe7 (patch) (side-by-side diff) | |
tree | fe7b9bc8da74bce0dcc6d8a033b8a8073f81ad14 /lib | |
parent | 54f9cf0424f47ef6384bc55904097dc4ecb5fc78 (diff) | |
download | libopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.zip libopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.tar.gz libopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.tar.bz2 |
keep track of whether the identity being discovered is XRI
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | lib/discovery.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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('#'); |