drogonframework / drogonframework/drogon
A way to get USE_SSL attribute from listener
Open
- Dominant language
- C++
- Stars
- 14.3k
- Forks
- 1.4k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 14
Description
Hi,
There is any way to know if a listener is using SSL? I can get the port and host, but not "use ssl" option from listener.
```
int32_t HttpServerImpl::getSocketPort()
{
return drogon::app().getListeners()[0].toPort();
}
std::string HttpServerImpl::getSocketHost()
{
return drogon::app().getListeners()[0].toIp();
}
```
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.