*(home): do not set whois-info for manually created clients
✅ Closes: Do not set WhoisInfo for manually created clients
This commit is contained in:
@@ -167,14 +167,14 @@ func TestClientsWhois(t *testing.T) {
|
||||
clients.SetWhoisInfo("1.1.1.1", whois)
|
||||
assert.True(t, clients.ipHost["1.1.1.1"].WhoisInfo[0][1] == "orgname-val")
|
||||
|
||||
// set whois info on existing client
|
||||
// Check that we cannot set whois info on existing client
|
||||
c = Client{
|
||||
IDs: []string{"1.1.1.2"},
|
||||
Name: "client1",
|
||||
}
|
||||
_, _ = clients.Add(c)
|
||||
clients.SetWhoisInfo("1.1.1.2", whois)
|
||||
assert.True(t, clients.idIndex["1.1.1.2"].WhoisInfo[0][1] == "orgname-val")
|
||||
assert.Nil(t, clients.idIndex["1.1.1.2"].WhoisInfo)
|
||||
_ = clients.Del("client1")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user