Files
gatuna/win/gatuna-client/Program.cs
T
mute 25f00b0deb add gatunad server and winforms client v1 (TCP-only)
Raw-Ethernet tunnel over ethertype 0x6969 to bypass WFP killswitches.
Server (Rust, AF_PACKET + classic BPF) relays TCP to 127.0.0.1 services.
Client (.NET 8 WinForms, SharpPcap/Npcap) discovers upstreams and exposes
local loopback listeners. Wire protocol: 6-byte header, 7 frame types,
MANIFEST with labeled upstreams. UDP types reserved, unimplemented.
2026-08-12 18:20:51 +00:00

41 lines
917 B
C#

namespace gatuna_client;
static class Program
{
[STAThread]
static void Main()
{
ApplicationConfiguration.Initialize();
var form = new MainForm();
using var tray = new NotifyIcon
{
Icon = SystemIcons.Application,
Text = "gatuna",
Visible = true,
};
tray.ContextMenuStrip = new ContextMenuStrip();
tray.ContextMenuStrip.Items.Add("Show", null, (_, _) =>
{
form.Show();
form.Activate();
});
tray.ContextMenuStrip.Items.Add("-");
tray.ContextMenuStrip.Items.Add("Exit", null, (_, _) =>
{
form.Shutdown();
tray.Visible = false;
Application.Exit();
});
tray.DoubleClick += (_, _) =>
{
form.Show();
form.Activate();
};
Application.Run(form);
}
}