diff options
author | Christian Pointner <equinox@anytun.org> | 2009-04-07 01:29:46 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-04-07 01:29:46 +0000 |
commit | 2d321c8ca41e26456bb96c4c6b5612a44b408ff4 (patch) | |
tree | 70a4047606c633b75f48977ea29e6a1f2f541761 /src/options.cpp | |
parent | removed anytun02-compat mode (diff) |
added log notice for key derivation role parameter
Diffstat (limited to 'src/options.cpp')
-rw-r--r-- | src/options.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/options.cpp b/src/options.cpp index 7505eb5..82481c0 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -51,6 +51,16 @@ std::ostream& operator<<(std::ostream& stream, syntax_error const& error) return stream; } +std::ostream& operator<<(std::ostream& stream, role_t const& role) +{ + switch(role) { + case ROLE_LEFT: stream << "left"; break; + case ROLE_RIGHT: stream << "right"; break; + default: stream << "unknown"; break; + } + return stream; +} + void OptionHost::init(std::string addrPort) { std::string origAddrPort(addrPort); |