Update HttpListenCommand.cc

pull/1941/head
JJenkx 2022-06-22 03:17:53 -04:00 committed by GitHub
parent 91de1de749
commit 3410baa513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@
namespace aria2 {
HttpListenCommand::HttpListenCommand(cuid_t cuid, DownloadEngine* e, int family,
uint16_t port, bool secure)
: Command(cuid), e_(e), fd_(-1), family_(family), port_(port), secure_(secure)
{
}
HttpListenCommand::HttpListenCommand(cuid_t cuid, DownloadEngine* e, int fd,
bool secure)
: Command(cuid), e_(e), fd_(fd), family_(AF_INET), port_(0), secure_(secure)
{