| 20 | boost::signals2::signal<void(const Endpoint::Ptr&, const JsonRpcConnection::Ptr&)> Endpoint::OnDisconnected; |
| 21 | |
| 22 | void Endpoint::OnAllConfigLoaded() |
| 23 | { |
| 24 | ObjectImpl<Endpoint>::OnAllConfigLoaded(); |
| 25 | |
| 26 | if (!m_Zone) |
| 27 | BOOST_THROW_EXCEPTION(ScriptError("Endpoint '" + GetName() + |
| 28 | "' does not belong to a zone.", GetDebugInfo())); |
| 29 | |
| 30 | if (GetName().GetLength() > 64) { |
| 31 | std::ostringstream oss; |
| 32 | ShowCodeLocation(oss, GetDebugInfo(), false); |
| 33 | |
| 34 | Log(LogWarning, "Endpoint") |
| 35 | << "Endpoint name is too long (length: " << GetName().GetLength() |
| 36 | << ", max: 64) to be used as CN in TLS certificates. Consider using a shorter name.\n" << oss.str(); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | void Endpoint::SetCachedZone(const Zone::Ptr& zone) |
| 41 | { |
nothing calls this directly
no test coverage detected