drogonframework / drogonframework/drogon

A way to get USE_SSL attribute from listener

Open
#1,294 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.