diff --git a/Esiur/Net/Packets/IIPAuthPacket.cs b/Esiur/Net/Packets/IIPAuthPacket.cs index 3faf5e7..08d3fc1 100644 --- a/Esiur/Net/Packets/IIPAuthPacket.cs +++ b/Esiur/Net/Packets/IIPAuthPacket.cs @@ -273,8 +273,11 @@ class IIPAuthPacket : Packet offset += domainLength; + if (RemoteMethod == AuthenticationMethod.Certificate) + { - if (RemoteMethod == AuthenticationMethod.Credentials) + } + else if (RemoteMethod == AuthenticationMethod.Credentials) { if (LocalMethod == AuthenticationMethod.None) {