Hostnames still aren't accepted.
- if (fd >= 0)
- return -ENOENT;
-
- return -fd;
r = fd_fd(optarg);
if (r >= 0)
http_socket = r;
r = fd_fd(optarg);
if (r >= 0)
http_socket = r;
arg_listen_http = optarg;
arg_listen_http = optarg;
- else {
- log_error("Invalid port/fd specification %s: %s",
- optarg, strerror(-r));
- return -EINVAL;
- }
-
break;
case ARG_LISTEN_HTTPS:
break;
case ARG_LISTEN_HTTPS:
r = fd_fd(optarg);
if (r >= 0)
https_socket = r;
r = fd_fd(optarg);
if (r >= 0)
https_socket = r;
arg_listen_https = optarg;
arg_listen_https = optarg;
- else {
- log_error("Invalid port/fd specification %s: %s",
- optarg, strerror(-r));
- return -EINVAL;
- }