diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-05-29 18:05:40 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-05-29 18:17:18 -0400 |
commit | fa1433ac1be8481f08c1a0a311a6b87d8a874c6a (patch) | |
tree | 4f2b275c5103d54f1baf37a5530472be99a24832 /src/protocol.cpp | |
parent | cb88de3e3d37842199a17ba3d36838fc69fbe573 (diff) |
rpc: Remove special case for unknown service flags
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 93e76f1f13..5cddfaf052 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -5,8 +5,8 @@ #include <protocol.h> -#include <util/system.h> #include <util/strencodings.h> +#include <util/system.h> #ifndef WIN32 # include <arpa/inet.h> @@ -216,11 +216,7 @@ static std::string serviceFlagToStr(size_t bit) std::ostringstream stream; stream.imbue(std::locale::classic()); stream << "UNKNOWN["; - if (bit < 8) { - stream << service_flag; - } else { - stream << "2^" << bit; - } + stream << "2^" << bit; stream << "]"; return stream.str(); } |