Skip to content

Commit

Permalink
up4.11
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Feb 5, 2021
1 parent 23b0f15 commit 83804bd
Show file tree
Hide file tree
Showing 6 changed files with 739 additions and 686 deletions.
86 changes: 52 additions & 34 deletions v2rayN/v2rayN/Forms/RoutingSettingForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 13 additions & 4 deletions v2rayN/v2rayN/Forms/RoutingSettingForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ private void InitUI()
this.tabPageDirect.Parent = null;
this.tabPageBlock.Parent = null;
this.tabPageRuleList.Parent = tabNormal;
MenuItem1.Enabled = true;
MenuItemBasic.Enabled = false;
MenuItemAdvanced.Enabled = true;

}
else
Expand All @@ -87,9 +88,10 @@ private void InitUI()
this.tabPageDirect.Parent = tabNormal;
this.tabPageBlock.Parent = tabNormal;
this.tabPageRuleList.Parent = null;
MenuItem1.Enabled = false;
MenuItemBasic.Enabled = true;
MenuItemAdvanced.Enabled = false;
}

}


Expand Down Expand Up @@ -285,9 +287,16 @@ private int SetDefaultRouting(int index)
return 0;
}

private void menuImportBasicRules_Click(object sender, EventArgs e)
{
//Extra to bypass the mainland
txtDirectDomain.Text = "geosite:cn";
txtDirectIp.Text = "geoip:private,geoip:cn";

#endregion
txtBlockDomain.Text = "geosite:category-ads-all";
}

#endregion

}
}
Loading

0 comments on commit 83804bd

Please sign in to comment.