connection_auth_disabled(false),
vport(0),
disable_pmtu_discovery(0),
- listenConn()
+ listenConn(),
#if USE_OPENSSL
- ,cert(NULL),
+ cert(NULL),
key(NULL),
version(0),
cipher(NULL),
dhParams(),
contextMethod(),
sslContextFlags(0),
- sslOptions(0)
+ sslOptions(0),
#endif
+ ftp_track_dirs(false)
{
memset(&tcp_keepalive, 0, sizeof(tcp_keepalive));
}
b->connection_auth_disabled = connection_auth_disabled;
b->disable_pmtu_discovery = disable_pmtu_discovery;
b->tcp_keepalive = tcp_keepalive;
+ b->ftp_track_dirs = ftp_track_dirs;
#if 0
// TODO: AYJ: 2009-07-18: for now SSL does not clone. Configure separate ports with IPs and SSL settings
// HTTP/1.0 not supported because we are version 1.1 which contains a superset of 1.0
// and RFC 2616 requires us to upgrade 1.0 to 1.1
- if (strcasecmp("http", aProtocol) != 0 || strcmp("HTTP/1.1", aProtocol) != 0)
+ if (strcasecmp("http", aProtocol) == 0 || strcmp("HTTP/1.1", aProtocol) == 0)
transport = AnyP::ProtocolVersion(AnyP::PROTO_HTTP, 1,1);
- else if (strcasecmp("https", aProtocol) != 0 || strcmp("HTTPS/1.1", aProtocol) != 0)
+ else if (strcasecmp("https", aProtocol) == 0 || strcmp("HTTPS/1.1", aProtocol) == 0)
transport = AnyP::ProtocolVersion(AnyP::PROTO_HTTPS, 1,1);
+ else if (strcasecmp("ftp", aProtocol) == 0)
+ transport = AnyP::ProtocolVersion(AnyP::PROTO_FTP, 1,0);
+
else
fatalf("http(s)_port protocol=%s is not supported\n", aProtocol);
}