mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Revert "forms: Add configuration to enable external access"
This reverts commit 1cd12c10237a388288250820227d05800f40f064.
This commit is contained in:
parent
c8d0ed2138
commit
e04bca0993
@ -9,14 +9,11 @@ OBSWebSocket.Settings.DebugEnable="Enable Debug Logging"
|
|||||||
OBSWebSocket.Settings.DebugEnableHoverText="Enables debug logging for the current instance of OBS. Does not persist on load.\nUse --websocket_debug to enable on load."
|
OBSWebSocket.Settings.DebugEnableHoverText="Enables debug logging for the current instance of OBS. Does not persist on load.\nUse --websocket_debug to enable on load."
|
||||||
|
|
||||||
OBSWebSocket.Settings.ServerSettingsTitle="Server Settings"
|
OBSWebSocket.Settings.ServerSettingsTitle="Server Settings"
|
||||||
OBSWebSocket.Settings.ServerPort="Server Port"
|
|
||||||
OBSWebSocket.Settings.AllowExternal="Allow External Access"
|
|
||||||
OBSWebSocket.Settings.AllowExternalHoverText="Allows clients from outside this computer to connect to obs-websocket."
|
|
||||||
OBSWebSocket.Settings.AuthRequired="Enable Authentication"
|
OBSWebSocket.Settings.AuthRequired="Enable Authentication"
|
||||||
OBSWebSocket.Settings.Password="Server Password"
|
OBSWebSocket.Settings.Password="Server Password"
|
||||||
OBSWebSocket.Settings.GeneratePassword="Generate Password"
|
OBSWebSocket.Settings.GeneratePassword="Generate Password"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Server Port"
|
||||||
OBSWebSocket.Settings.ShowConnectInfo="Show Connect Info"
|
OBSWebSocket.Settings.ShowConnectInfo="Show Connect Info"
|
||||||
OBSWebSocket.Settings.ShowConnectInfoHoverText="Connect Info is not available if external connections are disabled."
|
|
||||||
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Warning: Currently Live"
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Warning: Currently Live"
|
||||||
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="It appears that an output (stream, recording, etc.) is currently active."
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="It appears that an output (stream, recording, etc.) is currently active."
|
||||||
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Are you sure that you want to show your connect info?"
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Are you sure that you want to show your connect info?"
|
||||||
|
@ -52,9 +52,7 @@ SettingsDialog::SettingsDialog(QWidget *parent)
|
|||||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||||
|
|
||||||
// Set the appropriate tooltip icon for the theme
|
// Set the appropriate tooltip icon for the theme
|
||||||
QString toolTipHtml = GetToolTipIconHtml();
|
ui->enableDebugLoggingToolTipLabel->setText(GetToolTipIconHtml());
|
||||||
ui->enableDebugLoggingToolTipLabel->setText(toolTipHtml);
|
|
||||||
ui->allowExternalToolTipLabel->setText(toolTipHtml);
|
|
||||||
|
|
||||||
connect(sessionTableTimer, &QTimer::timeout, this, &SettingsDialog::FillSessionTable);
|
connect(sessionTableTimer, &QTimer::timeout, this, &SettingsDialog::FillSessionTable);
|
||||||
connect(ui->buttonBox, &QDialogButtonBox::clicked, this, &SettingsDialog::DialogButtonClicked);
|
connect(ui->buttonBox, &QDialogButtonBox::clicked, this, &SettingsDialog::DialogButtonClicked);
|
||||||
@ -124,17 +122,12 @@ void SettingsDialog::RefreshData()
|
|||||||
ui->enableSystemTrayAlertsCheckBox->setChecked(conf->AlertsEnabled);
|
ui->enableSystemTrayAlertsCheckBox->setChecked(conf->AlertsEnabled);
|
||||||
ui->enableDebugLoggingCheckBox->setChecked(conf->DebugEnabled);
|
ui->enableDebugLoggingCheckBox->setChecked(conf->DebugEnabled);
|
||||||
ui->serverPortSpinBox->setValue(conf->ServerPort);
|
ui->serverPortSpinBox->setValue(conf->ServerPort);
|
||||||
ui->allowExternalCheckBox->setChecked(!conf->BindLoopback);
|
|
||||||
ui->enableAuthenticationCheckBox->setChecked(conf->AuthRequired);
|
ui->enableAuthenticationCheckBox->setChecked(conf->AuthRequired);
|
||||||
ui->serverPasswordLineEdit->setText(conf->ServerPassword);
|
ui->serverPasswordLineEdit->setText(conf->ServerPassword);
|
||||||
|
|
||||||
ui->showConnectInfoButton->setEnabled(!conf->BindLoopback);
|
|
||||||
ui->serverPasswordLineEdit->setEnabled(conf->AuthRequired);
|
ui->serverPasswordLineEdit->setEnabled(conf->AuthRequired);
|
||||||
ui->generatePasswordButton->setEnabled(conf->AuthRequired);
|
ui->generatePasswordButton->setEnabled(conf->AuthRequired);
|
||||||
|
|
||||||
ui->showConnectInfoButton->setToolTip(
|
|
||||||
ui->allowExternalCheckBox->isChecked() ? "" : obs_module_text("OBSWebSocket.Settings.ShowConnectInfoHoverText"));
|
|
||||||
|
|
||||||
FillSessionTable();
|
FillSessionTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,17 +177,14 @@ void SettingsDialog::SaveFormData()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool needsRestart =
|
bool needsRestart = (conf->ServerEnabled != ui->enableWebSocketServerCheckBox->isChecked()) ||
|
||||||
(conf->ServerEnabled != ui->enableWebSocketServerCheckBox->isChecked()) ||
|
(conf->ServerPort != ui->serverPortSpinBox->value()) ||
|
||||||
(ui->enableAuthenticationCheckBox->isChecked() && conf->ServerPassword != ui->serverPasswordLineEdit->text()) ||
|
(ui->enableAuthenticationCheckBox->isChecked() && conf->ServerPassword != ui->serverPasswordLineEdit->text());
|
||||||
(conf->BindLoopback == ui->allowExternalCheckBox->isChecked()) ||
|
|
||||||
(conf->ServerPort != ui->serverPortSpinBox->value());
|
|
||||||
|
|
||||||
conf->ServerEnabled = ui->enableWebSocketServerCheckBox->isChecked();
|
conf->ServerEnabled = ui->enableWebSocketServerCheckBox->isChecked();
|
||||||
conf->AlertsEnabled = ui->enableSystemTrayAlertsCheckBox->isChecked();
|
conf->AlertsEnabled = ui->enableSystemTrayAlertsCheckBox->isChecked();
|
||||||
conf->DebugEnabled = ui->enableDebugLoggingCheckBox->isChecked();
|
conf->DebugEnabled = ui->enableDebugLoggingCheckBox->isChecked();
|
||||||
conf->ServerPort = ui->serverPortSpinBox->value();
|
conf->ServerPort = ui->serverPortSpinBox->value();
|
||||||
conf->BindLoopback = !ui->allowExternalCheckBox->isChecked();
|
|
||||||
conf->AuthRequired = ui->enableAuthenticationCheckBox->isChecked();
|
conf->AuthRequired = ui->enableAuthenticationCheckBox->isChecked();
|
||||||
conf->ServerPassword = ui->serverPasswordLineEdit->text();
|
conf->ServerPassword = ui->serverPasswordLineEdit->text();
|
||||||
|
|
||||||
|
@ -155,21 +155,21 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QCheckBox" name="enableAuthenticationCheckBox">
|
<widget class="QCheckBox" name="enableAuthenticationCheckBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.Settings.AuthRequired</string>
|
<string>OBSWebSocket.Settings.AuthRequired</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="serverPasswordLabel">
|
<widget class="QLabel" name="serverPasswordLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.Settings.Password</string>
|
<string>OBSWebSocket.Settings.Password</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="2" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="serverPasswordLineEdit">
|
<widget class="QLineEdit" name="serverPasswordLineEdit">
|
||||||
@ -187,7 +187,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="3" column="0">
|
||||||
<spacer name="horizontalSpacer_2">
|
<spacer name="horizontalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
@ -203,47 +203,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QPushButton" name="showConnectInfoButton">
|
<widget class="QPushButton" name="showConnectInfoButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.Settings.ShowConnectInfo</string>
|
<string>OBSWebSocket.Settings.ShowConnectInfo</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="allowExternalCheckBox">
|
|
||||||
<property name="text">
|
|
||||||
<string>OBSWebSocket.Settings.AllowExternal</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="allowExternalToolTipLabel">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>OBSWebSocket.Settings.AllowExternalHoverText</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_4">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -120,7 +120,7 @@ void WebSocketServer::Start()
|
|||||||
blog(LOG_INFO, "[WebSocketServer::Start] Locked to IPv4 bindings.");
|
blog(LOG_INFO, "[WebSocketServer::Start] Locked to IPv4 bindings.");
|
||||||
} else {
|
} else {
|
||||||
_server.listen(conf->ServerPort, errorCode);
|
_server.listen(conf->ServerPort, errorCode);
|
||||||
blog(LOG_INFO, "[WebSocketServer::Start] Bound to all interfaces.");
|
blog(LOG_INFO, "[WebSocketServer::Start] Not locked to IPv4 bindings.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errorCode) {
|
if (errorCode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user