summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--auto/sources2
-rw-r--r--src/nxt_runtime.c14
-rw-r--r--src/nxt_runtime.h1
3 files changed, 1 insertions, 16 deletions
diff --git a/auto/sources b/auto/sources
index 0ebdab63..bc979fe2 100644
--- a/auto/sources
+++ b/auto/sources
@@ -74,7 +74,6 @@ NXT_LIB_SRCS=" \
src/nxt_runtime.c \
src/nxt_conf.c \
src/nxt_conf_validation.c \
- src/nxt_stream_module.c \
src/nxt_main_process.c \
src/nxt_worker_process.c \
src/nxt_controller.c \
@@ -91,6 +90,7 @@ NXT_LIB_SRCS=" \
NXT_LIB_SRC0=" \
src/nxt_buf_filter.c \
src/nxt_job_file.c \
+ src/nxt_stream_module.c \
src/nxt_stream_source.c \
src/nxt_upstream_source.c \
src/nxt_http_source.c \
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index 8f20e0a0..547c7494 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -872,20 +872,6 @@ nxt_runtime_conf_read_cmd(nxt_task_t *task, nxt_runtime_t *rt)
continue;
}
- if (nxt_strcmp(p, "--upstream") == 0) {
- if (*argv == NULL) {
- nxt_alert(task, "no argument for option \"--upstream\"");
- return NXT_ERROR;
- }
-
- p = *argv++;
-
- rt->upstream.length = nxt_strlen(p);
- rt->upstream.start = (u_char *) p;
-
- continue;
- }
-
if (nxt_strcmp(p, "--user") == 0) {
if (*argv == NULL) {
write(STDERR_FILENO, no_user, nxt_length(no_user));
diff --git a/src/nxt_runtime.h b/src/nxt_runtime.h
index e4c9e2a1..496ae478 100644
--- a/src/nxt_runtime.h
+++ b/src/nxt_runtime.h
@@ -74,7 +74,6 @@ struct nxt_runtime_s {
nxt_sockaddr_t *controller_listen;
nxt_listen_socket_t *controller_socket;
- nxt_str_t upstream;
};