mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-10 01:34:58 +03:00
Cedar: various improvements to Proto
The PROTO structure is now used to identify the system as a whole, rather than a single protocol. It's stored and initialized in Server. ProtoCompare(), ProtoAdd() and ProtoDetected() are renamed to make the difference between PROTO and PROTO_IMPL more clear. ProtoGet() and ProtoNum() are removed because the related list can now be accessed directly by Server.
This commit is contained in:
@ -2935,10 +2935,10 @@ void ConnectionAccept(CONNECTION *c)
|
||||
{
|
||||
if (c->Cedar != NULL && c->Cedar->Server != NULL)
|
||||
{
|
||||
c->Type = CONNECTION_TYPE_OTHER;
|
||||
|
||||
if (ProtoHandleConnection(c->Cedar, s) == true)
|
||||
PROTO *proto = c->Cedar->Server->Proto;
|
||||
if (proto && ProtoHandleConnection(proto, s) == true)
|
||||
{
|
||||
c->Type = CONNECTION_TYPE_OTHER;
|
||||
goto FINAL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user