summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/protocol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/protocol.cpp b/src/network/protocol.cpp
index 40aeb47..79c023d 100644
--- a/src/network/protocol.cpp
+++ b/src/network/protocol.cpp
@@ -537,10 +537,10 @@ optional<NetworkProtocol::Header> NetworkProtocol::Header::load(const PartialObj
} else if (item.name == "CAC") {
if (auto ref = item.asRef())
items.emplace_back(ChannelAccept { ref->digest() });
- } else if (item.name == "STP") {
+ } else if (item.name == "SVT") {
if (auto val = item.asUUID())
items.emplace_back(ServiceType { *val });
- } else if (item.name == "SRF") {
+ } else if (item.name == "SVR") {
if (auto ref = item.asRef())
items.emplace_back(ServiceRef { ref->digest() });
}
@@ -588,10 +588,10 @@ PartialObject NetworkProtocol::Header::toObject(const PartialStorage & st) const
ritems.emplace_back("CAC", st.ref(ptr->value));
else if (const auto * ptr = get_if<ServiceType>(&item))
- ritems.emplace_back("STP", ptr->value);
+ ritems.emplace_back("SVT", ptr->value);
else if (const auto * ptr = get_if<ServiceRef>(&item))
- ritems.emplace_back("SRF", st.ref(ptr->value));
+ ritems.emplace_back("SVR", st.ref(ptr->value));
}
return PartialObject(PartialRecord(std::move(ritems)));