mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 08:14:58 +03:00
Cedar/Proto_OpenVPN.c: remove redundant log messages
The "session created" and "session deleted" messages were useful when a single OPENVPN_SERVER object handled multiple UDP sessions. Now that each session has its own OPENVPN_SERVER object and session creations/deletions are logged by PROTO, the messages are redundant. In future we will change the OpenVPN implementation so that the multi-session handling code is deleted. The messages were like this: OpenVPN Module: The OpenVPN Server Module is starting. OpenVPN Session 1 (192.168.122.211:47390 -> 0.0.0.0:1194): A new session is created. Protocol: UDP OpenVPN Session 1 (192.168.122.211:47390 -> 0.0.0.0:1194): Deleting the session. OpenVPN Module: The OpenVPN Server Module is stopped.
This commit is contained in:
@ -2139,8 +2139,6 @@ OPENVPN_SESSION *OvsNewSession(OPENVPN_SERVER *s, IP *server_ip, UINT server_por
|
||||
Debug("OpenVPN New Session: %s:%u -> %s:%u Proto=%u\n", server_ip_str, server_port,
|
||||
client_ip_str, client_port, protocol);
|
||||
|
||||
OvsLog(s, se, NULL, "LO_NEW_SESSION", (protocol == OPENVPN_PROTOCOL_UDP ? "UDP" : "TCP"));
|
||||
|
||||
return se;
|
||||
}
|
||||
|
||||
@ -2777,7 +2775,6 @@ void OvsRecvPacket(OPENVPN_SERVER *s, LIST *recv_packet_list, UINT protocol)
|
||||
OPENVPN_SESSION *se = LIST_DATA(delete_session_list, i);
|
||||
|
||||
Debug("Deleting Session %p\n", se);
|
||||
OvsLog(s, se, NULL, "LO_DELETE_SESSION");
|
||||
|
||||
OvsFreeSession(se);
|
||||
|
||||
@ -2982,8 +2979,6 @@ OPENVPN_SERVER *NewOpenVpnServer(const LIST *options, CEDAR *cedar, INTERRUPT_MA
|
||||
|
||||
s->NextSessionId = 1;
|
||||
|
||||
OvsLog(s, NULL, NULL, "LO_START");
|
||||
|
||||
s->Dh = DhNewFromBits(cedar->DhParamBits);
|
||||
|
||||
return s;
|
||||
@ -2999,8 +2994,6 @@ void FreeOpenVpnServer(OPENVPN_SERVER *s)
|
||||
return;
|
||||
}
|
||||
|
||||
OvsLog(s, NULL, NULL, "LO_STOP");
|
||||
|
||||
// Release the sessions list
|
||||
for (i = 0; i < LIST_NUM(s->SessionList); ++i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user