From 7423d6065f3867b7bce8961b67c7414a2a348739 Mon Sep 17 00:00:00 2001 From: tigerbot Date: Tue, 31 Oct 2017 12:14:37 -0600 Subject: [PATCH] added config for the tunnel server to the schema --- lib/admin/config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/admin/config.js b/lib/admin/config.js index 4e3c82f..d0a6ef0 100644 --- a/lib/admin/config.js +++ b/lib/admin/config.js @@ -174,6 +174,14 @@ var mdnsSchema = { } }; +var tunnelSvrSchema = { + type: 'object' +, properties: { + servernames: { type: 'array', items: { type: 'string' }} + , secret: { type: 'string' } + } +}; + var ddnsSchema = { type: 'object' , properties: { @@ -223,6 +231,7 @@ var mainSchema = { , ddns: ddnsSchema , socks5: socks5Schema , device: deviceSchema + , tunnel_server: tunnelSvrSchema } , additionalProperties: false };