mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +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();
|
SetupRouteTable();
|
||||||
|
|
||||||
|
Global.MainForm.StatusText(i18N.TranslateFormat("Starting {0}", Name));
|
||||||
|
|
||||||
string dns;
|
string dns;
|
||||||
if (Global.Settings.TUNTAP.UseCustomDNS)
|
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.Name = "SettingForm";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "Settings";
|
this.Text = "Settings";
|
||||||
this.Load += new System.EventHandler(this.SettingForm2_Load);
|
this.Load += new System.EventHandler(this.SettingForm_Load);
|
||||||
this.TabControl.ResumeLayout(false);
|
this.TabControl.ResumeLayout(false);
|
||||||
this.GeneralTabPage.ResumeLayout(false);
|
this.GeneralTabPage.ResumeLayout(false);
|
||||||
this.GeneralTabPage.PerformLayout();
|
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)));
|
Task.Run(() => BeginInvoke(new Action(() => UseFakeDNSCheckBox.Visible = Global.Flags.SupportFakeDns)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user