Fixed invalid range

This commit is contained in:
WolverinDEV 2020-04-19 18:40:40 +02:00
parent 85df6e096f
commit 512aa54700
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ int main(int argc, char** argv) {
if(!cfgErrors.empty()){ if(!cfgErrors.empty()){
logErrorFmt(true, LOG_GENERAL, "Could not load configuration. Errors: (" + to_string(cfgErrors.size()) + ")"); logErrorFmt(true, LOG_GENERAL, "Could not load configuration. Errors: (" + to_string(cfgErrors.size()) + ")");
for(const auto& entry : cfgErrors) for(const auto& entry : cfgErrors)
logError(true, LOG_GENERAL, " - {}", entry); logErrorFmt(true, LOG_GENERAL, " - {}", entry);
logErrorFmt(true, LOG_GENERAL, "Stopping server..."); logErrorFmt(true, LOG_GENERAL, "Stopping server...");
goto stopApp; goto stopApp;
} }

View File

@ -1485,7 +1485,7 @@ std::deque<std::shared_ptr<EntryBinding>> config::create_bindings() {
} }
{ {
CREATE_BINDING("webrtc.stun.port", 0); CREATE_BINDING("webrtc.stun.port", 0);
BIND_INTEGRAL(config::web::stun_port, 19302, 1, 65565); BIND_INTEGRAL(config::web::stun_port, 19302, 1, 0xFFFF);
ADD_DESCRIPTION("Port of the stun server"); ADD_DESCRIPTION("Port of the stun server");
ADD_NOTE_RELOADABLE(); ADD_NOTE_RELOADABLE();
} }