mirror of
https://github.com/tonarino/innernet.git
synced 2025-02-03 13:21:24 +02:00
{client,server}: hide innernet-server CIDR from selection menus
It's a special /32 CIDR that is un-interactable, so is only taking up space. Closes #63
This commit is contained in:
parent
a7f35ee12b
commit
f18fe14553
@ -77,6 +77,7 @@ pub fn add_cidr(cidrs: &[Cidr], request: &AddCidrOpts) -> Result<Option<CidrCont
|
||||
pub fn choose_cidr<'a>(cidrs: &'a [Cidr], text: &'static str) -> Result<&'a Cidr, Error> {
|
||||
let cidr_names: Vec<_> = cidrs
|
||||
.iter()
|
||||
.filter(|cidr| cidr.name != "innernet-server")
|
||||
.map(|cidr| format!("{} ({})", &cidr.name, &cidr.cidr))
|
||||
.collect();
|
||||
let cidr_index = Select::with_theme(&*THEME)
|
||||
|
Loading…
x
Reference in New Issue
Block a user