mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Cedar/Server.c: load UDP ports from configuration file and apply them
Unfortunately I realized only now that I didn't add the code in c4ec63fe32
.
This commit is contained in:
parent
09be880263
commit
4514ba5e2f
@ -5676,6 +5676,23 @@ void SiLoadServerCfg(SERVER *s, FOLDER *f)
|
|||||||
{
|
{
|
||||||
OPENVPN_SSTP_CONFIG config;
|
OPENVPN_SSTP_CONFIG config;
|
||||||
FOLDER *syslog_f;
|
FOLDER *syslog_f;
|
||||||
|
{
|
||||||
|
UINT i;
|
||||||
|
LIST *ports;
|
||||||
|
|
||||||
|
// Load and set UDP ports
|
||||||
|
CfgGetStr(f, "PortsUDP", tmp, sizeof(tmp));
|
||||||
|
NormalizeIntListStr(tmp, sizeof(tmp), tmp, true, ", ");
|
||||||
|
|
||||||
|
ports = StrToIntList(tmp, true);
|
||||||
|
for (i = 0; i < LIST_NUM(ports); ++i)
|
||||||
|
{
|
||||||
|
AddInt(s->PortsUDP, *(UINT *)LIST_DATA(ports, i));
|
||||||
|
}
|
||||||
|
ReleaseIntList(ports);
|
||||||
|
|
||||||
|
ProtoSetUdpPorts(s->Proto, ports);
|
||||||
|
}
|
||||||
{
|
{
|
||||||
RPC_KEEP k;
|
RPC_KEEP k;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user