From 27091c32841bf074bec60f46fea1954c455233d9 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 15 May 2018 06:28:42 +0200 Subject: [PATCH] Fix refactoring mistakes --- allowedips_rand_test.go | 4 ++-- uapi.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/allowedips_rand_test.go b/allowedips_rand_test.go index 6ec039d..f60df76 100644 --- a/allowedips_rand_test.go +++ b/allowedips_rand_test.go @@ -92,7 +92,7 @@ func TestTrieRandomIPv4(t *testing.T) { peer1 := slow.Lookup(addr[:]) peer2 := trie.lookup(addr[:]) if peer1 != peer2 { - t.Error("trieEntry did not match naive implementation, for:", addr) + t.Error("Trie did not match naive implementation, for:", addr) } } } @@ -125,7 +125,7 @@ func TestTrieRandomIPv6(t *testing.T) { peer1 := slow.Lookup(addr[:]) peer2 := trie.lookup(addr[:]) if peer1 != peer2 { - t.Error("trieEntry did not match naive implementation, for:", addr) + t.Error("Trie did not match naive implementation, for:", addr) } } } diff --git a/uapi.go b/uapi.go index f846033..3e4c28c 100644 --- a/uapi.go +++ b/uapi.go @@ -331,7 +331,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError { case "replace_allowed_ips": - logDebug.Println("UAPI: Removing all allowed EntriesForPeer for peer:", peer) + logDebug.Println("UAPI: Removing all allowedips for peer:", peer) if value != "true" { logError.Println("Failed to set replace_allowed_ips, invalid value:", value)