You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"--add-endpoint options segment supports only 'allow-uninspected-credentials', 'websocket-credential-rewrite', 'request-body-credential-rewrite', and 'allowed-ip=<CIDR-or-IP>'; got '{option}' in '{spec}'"
386
-
));
387
-
};
388
-
let allowed_ip = allowed_ip.trim();
389
-
if allowed_ip.is_empty(){
390
-
returnErr(miette!(
391
-
"--add-endpoint allowed-ip option must include a CIDR or IP value in '{spec}'"
392
-
));
393
-
}
394
-
if allowed_ip.contains(char::is_whitespace){
395
-
returnErr(miette!(
396
-
"--add-endpoint allowed-ip option must not contain whitespace in '{spec}'"
"--add-endpoint options segment supports only 'allow-uninspected-credentials', 'websocket-credential-rewrite', 'request-body-credential-rewrite', and 'allowed-ip=<CIDR-or-IP>'; got '{option}' in '{spec}'"
394
+
));
395
+
}
407
396
}
408
397
}
409
398
410
399
Ok(())
411
400
}
412
401
402
+
/// Validate the value part of an `allowed-ip=<CIDR-or-IP>` endpoint option.
0 commit comments