Skip to content

Commit aa5da89

Browse files
committed
add check on tunnel type
1 parent cd476cc commit aa5da89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commands/utils/validate.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ function validateTunnel(configFile) {
160160
try {
161161
let config = JSON.parse(fs.readFileSync(configFile));
162162
tunnelConfig = config.tunnel || {};
163+
if (tunnelConfig && tunnelConfig.type != "manual") {
164+
throw new ValidationError('Invalid tunnel type. Accepted type is `manual` only');
165+
}
163166
} catch (error) {
164167
console.log('[smartui] Error: ', error.message);
165168
process.exit(constants.ERROR_CATCHALL);

0 commit comments

Comments
 (0)