fix(web): clarify wildcard host safety warning
This commit is contained in:
@@ -67,7 +67,7 @@ export function apply(ctx: Context): void {
|
||||
program.action(() => {
|
||||
const options = program.opts<WebOptions>()
|
||||
if (options.host === '0.0.0.0') {
|
||||
program.error('error: --host 0.0.0.0 is intentionally not supported yet; use 127.0.0.1 instead')
|
||||
program.error('error: --host 0.0.0.0 is intentionally not supported yet for safety: it would expose remote code execution to the network; use 127.0.0.1 instead')
|
||||
}
|
||||
if (options.port !== undefined && !/^\d+$/.test(options.port)) {
|
||||
program.error(`error: --port must be a number, got ${JSON.stringify(options.port)}`)
|
||||
|
||||
Reference in New Issue
Block a user