From 2c27ab205c992d3387574aa6d57780744d35d36f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 13 May 2018 18:23:40 +0200 Subject: Rework index hashtable --- device.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'device.go') diff --git a/device.go b/device.go index e127b5b..3db3609 100644 --- a/device.go +++ b/device.go @@ -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 -- cgit v1.2.3