certificate auth: fix source address checking inside crypto/ssh

So we can avoid to check source address ourself

81aafe6d26

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2020-05-16 15:15:32 +02:00
parent 7ae8b2cdeb
commit 469d36d979
6 changed files with 26 additions and 50 deletions

View File

@@ -833,7 +833,7 @@ func TestLoginUserCert(t *testing.T) {
err = os.RemoveAll(user.GetHomeDir())
assert.NoError(t, err)
// now login with a username not in the set of valid principals for given certificate
// now login with a username not in the set of valid principals for the given certificate
u.Username += "1"
user, _, err = httpd.AddUser(u, http.StatusOK)
assert.NoError(t, err)