Add support for network level authentication

pull/1/head
firealarmss 11 months ago
parent 07c1d207d9
commit 744a9520c1

@ -216,26 +216,21 @@ namespace WhackerLinkConsoleV2
systemStatusBox.Background = new SolidColorBrush(Colors.Red); systemStatusBox.Background = new SolidColorBrush(Colors.Red);
systemStatusBox.ConnectionState = "Disconnected"; systemStatusBox.ConnectionState = "Disconnected";
}); });
};
Thread.Sleep(1000); handler.OnOpen += () =>
{
Task.Factory.StartNew(() => Console.WriteLine("Peer connected");
{ };
handler.Connect(system.Address, system.Port);
U_REG_REQ release = new U_REG_REQ
{
SrcId = system.Rid,
Site = system.Site
};
handler.SendMessage(release.GetData()); handler.OnReconnecting += () =>
}); {
Console.WriteLine("Peer reconnecting");
}; };
Task.Factory.StartNew(() => Task.Factory.StartNew(() =>
{ {
handler.Connect(system.Address, system.Port); handler.Connect(system.Address, system.Port, system.AuthKey);
handler.OnGroupAffiliationResponse += (response) => { /* TODO */ }; handler.OnGroupAffiliationResponse += (response) => { /* TODO */ };

@ -10,6 +10,7 @@ systems:
- name: "System 1" - name: "System 1"
address: "localhost" address: "localhost"
port: 3000 port: 3000
authKey: ""
rid: "12345" rid: "12345"
site: site:
name: "Central Site" name: "Central Site"

@ -1 +1 @@
Subproject commit 8982a924e1b64a11782b2b5d44baa01fd1ab95d0 Subproject commit 0913ce1acc012436e7038f5b6b0b22e6c04cb7e0
Loading…
Cancel
Save

Powered by TurnKey Linux.