summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gtm/proxy/proxy_main.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/gtm/proxy/proxy_main.c b/src/gtm/proxy/proxy_main.c
index ad99ad0461..5924e60e7f 100644
--- a/src/gtm/proxy/proxy_main.c
+++ b/src/gtm/proxy/proxy_main.c
@@ -785,6 +785,37 @@ main(int argc, char *argv[])
progname);
exit(1);
}
+ if (ListenAddresses == NULL || *ListenAddresses == '\0')
+ {
+ write_stderr("GTM Proxy listen addresses must be specified\n");
+ write_stderr("Try \"%s --help\" for more information.\n",
+ progname);
+ exit(1);
+ }
+ if (GTMProxyPortNumber == 0)
+ {
+ write_stderr("GTM Proxy port number must be specified\n");
+ write_stderr("Try \"%s --help\" for more information.\n",
+ progname);
+ exit(1);
+
+ }
+ if (GTMServerHost == NULL || *GTMServerHost == '\0')
+ {
+ write_stderr("GTM server listen address must be specified\n");
+ write_stderr("Try \"%s --help\" for more information.\n",
+ progname);
+ exit(1);
+
+ }
+ if (GTMServerPortNumber == 0)
+ {
+ write_stderr("GTM server port number must be specified\n");
+ write_stderr("Try \"%s --help\" for more information.\n",
+ progname);
+ exit(1);
+
+ }
/*
* GTM accepts no non-option switch arguments.