lwsws conf move interface to be vhost attribute
Signed-off-by: Andy Green <andy@warmcat.com>
diff --git a/lwsws/conf.c b/lwsws/conf.c
index 7ed5b58..5a79d9f 100644
--- a/lwsws/conf.c
+++ b/lwsws/conf.c
@@ -24,7 +24,6 @@
static const char * const paths_global[] = {
"global.uid",
"global.gid",
- "global.interface",
"global.count-threads",
"global.init-ssl",
};
@@ -32,7 +31,6 @@
enum lejp_global_paths {
LEJPGP_UID,
LEJPGP_GID,
- LEJPGP_INTERFACE,
LEJPGP_COUNT_THREADS,
LWJPGP_INIT_SSL,
};
@@ -42,6 +40,7 @@
"vhosts[].mounts[]",
"vhosts[].name",
"vhosts[].port",
+ "vhosts[].interface",
"vhosts[].host-ssl-key",
"vhosts[].host-ssl-cert",
"vhosts[].host-ssl-ca",
@@ -61,6 +60,7 @@
LEJPVP_MOUNTS,
LEJPVP_NAME,
LEJPVP_PORT,
+ LEJPVP_INTERFACE,
LEJPVP_HOST_SSL_KEY,
LEJPVP_HOST_SSL_CERT,
LEJPVP_HOST_SSL_CA,
@@ -128,9 +128,6 @@
case LEJPGP_GID:
a->info->gid = atoi(ctx->buf);
return 0;
- case LEJPGP_INTERFACE:
- a->info->iface = a->p;
- break;
case LEJPGP_COUNT_THREADS:
a->info->count_threads = atoi(ctx->buf);
return 0;
@@ -270,6 +267,9 @@
case LEJPVP_PORT:
a->info->port = atoi(ctx->buf);
return 0;
+ case LEJPVP_INTERFACE:
+ a->info->iface = a->p;
+ break;
case LEJPVP_HOST_SSL_KEY:
a->info->ssl_private_key_filepath = a->p;
break;