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.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.Password="Server Password"
|
||||
OBSWebSocket.Settings.GeneratePassword="Generate Password"
|
||||
OBSWebSocket.Settings.ServerPort="Server Port"
|
||||
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.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?"
|
||||
|
@ -52,9 +52,7 @@ SettingsDialog::SettingsDialog(QWidget *parent)
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
// Set the appropriate tooltip icon for the theme
|
||||
QString toolTipHtml = GetToolTipIconHtml();
|
||||
ui->enableDebugLoggingToolTipLabel->setText(toolTipHtml);
|
||||
ui->allowExternalToolTipLabel->setText(toolTipHtml);
|
||||
ui->enableDebugLoggingToolTipLabel->setText(GetToolTipIconHtml());
|
||||
|
||||
connect(sessionTableTimer, &QTimer::timeout, this, &SettingsDialog::FillSessionTable);
|
||||
connect(ui->buttonBox, &QDialogButtonBox::clicked, this, &SettingsDialog::DialogButtonClicked);
|
||||
@ -124,17 +122,12 @@ void SettingsDialog::RefreshData()
|
||||
ui->enableSystemTrayAlertsCheckBox->setChecked(conf->AlertsEnabled);
|
||||
ui->enableDebugLoggingCheckBox->setChecked(conf->DebugEnabled);
|
||||
ui->serverPortSpinBox->setValue(conf->ServerPort);
|
||||
ui->allowExternalCheckBox->setChecked(!conf->BindLoopback);
|
||||
ui->enableAuthenticationCheckBox->setChecked(conf->AuthRequired);
|
||||
ui->serverPasswordLineEdit->setText(conf->ServerPassword);
|
||||
|
||||
ui->showConnectInfoButton->setEnabled(!conf->BindLoopback);
|
||||
ui->serverPasswordLineEdit->setEnabled(conf->AuthRequired);
|
||||
ui->generatePasswordButton->setEnabled(conf->AuthRequired);
|
||||
|
||||
ui->showConnectInfoButton->setToolTip(
|
||||
ui->allowExternalCheckBox->isChecked() ? "" : obs_module_text("OBSWebSocket.Settings.ShowConnectInfoHoverText"));
|
||||
|
||||
FillSessionTable();
|
||||
}
|
||||
|
||||
@ -184,17 +177,14 @@ void SettingsDialog::SaveFormData()
|
||||
}
|
||||
}
|
||||
|
||||
bool needsRestart =
|
||||
(conf->ServerEnabled != ui->enableWebSocketServerCheckBox->isChecked()) ||
|
||||
(ui->enableAuthenticationCheckBox->isChecked() && conf->ServerPassword != ui->serverPasswordLineEdit->text()) ||
|
||||
(conf->BindLoopback == ui->allowExternalCheckBox->isChecked()) ||
|
||||
(conf->ServerPort != ui->serverPortSpinBox->value());
|
||||
bool needsRestart = (conf->ServerEnabled != ui->enableWebSocketServerCheckBox->isChecked()) ||
|
||||
(conf->ServerPort != ui->serverPortSpinBox->value()) ||
|
||||
(ui->enableAuthenticationCheckBox->isChecked() && conf->ServerPassword != ui->serverPasswordLineEdit->text());
|
||||
|
||||
conf->ServerEnabled = ui->enableWebSocketServerCheckBox->isChecked();
|
||||
conf->AlertsEnabled = ui->enableSystemTrayAlertsCheckBox->isChecked();
|
||||
conf->DebugEnabled = ui->enableDebugLoggingCheckBox->isChecked();
|
||||
conf->ServerPort = ui->serverPortSpinBox->value();
|
||||
conf->BindLoopback = !ui->allowExternalCheckBox->isChecked();
|
||||
conf->AuthRequired = ui->enableAuthenticationCheckBox->isChecked();
|
||||
conf->ServerPassword = ui->serverPasswordLineEdit->text();
|
||||
|
||||
|
@ -155,21 +155,21 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<item row="1" column="1">
|
||||
<widget class="QCheckBox" name="enableAuthenticationCheckBox">
|
||||
<property name="text">
|
||||
<string>OBSWebSocket.Settings.AuthRequired</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="serverPasswordLabel">
|
||||
<property name="text">
|
||||
<string>OBSWebSocket.Settings.Password</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<item row="2" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="serverPasswordLineEdit">
|
||||
@ -187,7 +187,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<item row="3" column="0">
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@ -203,47 +203,13 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<item row="3" column="1">
|
||||
<widget class="QPushButton" name="showConnectInfoButton">
|
||||
<property name="text">
|
||||
<string>OBSWebSocket.Settings.ShowConnectInfo</string>
|
||||
</property>
|
||||
</widget>
|
||||
</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>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -120,7 +120,7 @@ void WebSocketServer::Start()
|
||||
blog(LOG_INFO, "[WebSocketServer::Start] Locked to IPv4 bindings.");
|
||||
} else {
|
||||
_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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user