mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-08-15 19:23:57 +02:00
Rework index hashtable
This commit is contained in:
@ -56,8 +56,8 @@ type Device struct {
|
||||
|
||||
// unprotected / "self-synchronising resources"
|
||||
|
||||
indices IndexTable
|
||||
mac CookieChecker
|
||||
indexTable IndexTable
|
||||
mac CookieChecker
|
||||
|
||||
rate struct {
|
||||
underLoadUntil atomic.Value
|
||||
@ -283,7 +283,7 @@ func NewDevice(tun TUNDevice, logger *Logger) *Device {
|
||||
|
||||
// initialize noise & crypt-key routine
|
||||
|
||||
device.indices.Init()
|
||||
device.indexTable.Init()
|
||||
device.routing.table.Reset()
|
||||
|
||||
// setup buffer pool
|
||||
|
Reference in New Issue
Block a user