mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
优化端口池范围限定逻辑 (#1508)
This commit is contained in:
parent
a16b6cbc59
commit
822a401f30
@ -375,7 +375,7 @@ public:
|
||||
};
|
||||
GET_CONFIG_FUNC(uint16_t, s_min_port, RtpProxy::kPortRange, [](const string &str) { return func(str, 0); });
|
||||
GET_CONFIG_FUNC(uint16_t, s_max_port, RtpProxy::kPortRange, [](const string &str) { return func(str, 1); });
|
||||
assert(s_max_port > s_min_port + 36);
|
||||
assert(s_max_port >= s_min_port + 36 -1);
|
||||
setRange((s_min_port + 1) / 2, s_max_port / 2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user