mirror of
https://github.com/netchx/netch.git
synced 2026-03-20 18:19:44 +08:00
fix: SettingForm TUNTAPDNS value init
fix: show starting tun2socks after setup route table fix: a typo
This commit is contained in:
@@ -68,6 +68,8 @@ namespace Netch.Controllers
|
||||
|
||||
SetupRouteTable();
|
||||
|
||||
Global.MainForm.StatusText(i18N.TranslateFormat("Starting {0}", Name));
|
||||
|
||||
string dns;
|
||||
if (Global.Settings.TUNTAP.UseCustomDNS)
|
||||
{
|
||||
|
||||
2
Netch/Forms/SettingForm.Designer.cs
generated
2
Netch/Forms/SettingForm.Designer.cs
generated
@@ -927,7 +927,7 @@ namespace Netch.Forms
|
||||
this.Name = "SettingForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Settings";
|
||||
this.Load += new System.EventHandler(this.SettingForm2_Load);
|
||||
this.Load += new System.EventHandler(this.SettingForm_Load);
|
||||
this.TabControl.ResumeLayout(false);
|
||||
this.GeneralTabPage.ResumeLayout(false);
|
||||
this.GeneralTabPage.PerformLayout();
|
||||
|
||||
@@ -20,8 +20,9 @@ namespace Netch.Forms
|
||||
}
|
||||
|
||||
|
||||
private void SettingForm2_Load(object sender, EventArgs e)
|
||||
private void SettingForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
TUNTAPUseCustomDNSCheckBox_CheckedChanged(null, null);
|
||||
Task.Run(() => BeginInvoke(new Action(() => UseFakeDNSCheckBox.Visible = Global.Flags.SupportFakeDns)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user