mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 04:08:45 -05:00
fix(settings): remove dns server option (#1416)
* fix(settings): remove dns server option This PR removes the DNS Servers option added in #1266 because it doesn't seem to work reliably. * style: remove whitespace change
This commit is contained in:
@@ -24,7 +24,6 @@
|
|||||||
"partialRequestsEnabled": true,
|
"partialRequestsEnabled": true,
|
||||||
"enableSpecialEpisodes": false,
|
"enableSpecialEpisodes": false,
|
||||||
"forceIpv4First": false,
|
"forceIpv4First": false,
|
||||||
"dnsServers": "",
|
|
||||||
"locale": "en"
|
"locale": "en"
|
||||||
},
|
},
|
||||||
"plex": {
|
"plex": {
|
||||||
|
|||||||
@@ -194,9 +194,6 @@ components:
|
|||||||
forceIpv4First:
|
forceIpv4First:
|
||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
dnsServers:
|
|
||||||
type: string
|
|
||||||
example: '1.1.1.1'
|
|
||||||
trustProxy:
|
trustProxy:
|
||||||
type: boolean
|
type: boolean
|
||||||
example: true
|
example: true
|
||||||
|
|||||||
@@ -83,12 +83,6 @@ app
|
|||||||
net.setDefaultAutoSelectFamily(false);
|
net.setDefaultAutoSelectFamily(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.network.dnsServers.trim() !== '') {
|
|
||||||
dns.setServers(
|
|
||||||
settings.network.dnsServers.split(',').map((server) => server.trim())
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Register HTTP proxy
|
// Register HTTP proxy
|
||||||
if (settings.network.proxy.enabled) {
|
if (settings.network.proxy.enabled) {
|
||||||
await createCustomProxyAgent(settings.network.proxy);
|
await createCustomProxyAgent(settings.network.proxy);
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ export interface MainSettings {
|
|||||||
export interface NetworkSettings {
|
export interface NetworkSettings {
|
||||||
csrfProtection: boolean;
|
csrfProtection: boolean;
|
||||||
forceIpv4First: boolean;
|
forceIpv4First: boolean;
|
||||||
dnsServers: string;
|
|
||||||
trustProxy: boolean;
|
trustProxy: boolean;
|
||||||
proxy: ProxySettings;
|
proxy: ProxySettings;
|
||||||
}
|
}
|
||||||
@@ -510,7 +509,6 @@ class Settings {
|
|||||||
csrfProtection: false,
|
csrfProtection: false,
|
||||||
trustProxy: false,
|
trustProxy: false,
|
||||||
forceIpv4First: false,
|
forceIpv4First: false,
|
||||||
dnsServers: '',
|
|
||||||
proxy: {
|
proxy: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
hostname: '',
|
hostname: '',
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ const migrateNetworkSettings = (settings: any): AllSettings => {
|
|||||||
csrfProtection: settings.main.csrfProtection ?? false,
|
csrfProtection: settings.main.csrfProtection ?? false,
|
||||||
trustProxy: settings.main.trustProxy ?? false,
|
trustProxy: settings.main.trustProxy ?? false,
|
||||||
forceIpv4First: settings.main.forceIpv4First ?? false,
|
forceIpv4First: settings.main.forceIpv4First ?? false,
|
||||||
dnsServers: settings.main.dnsServers ?? '',
|
|
||||||
proxy: settings.main.proxy ?? {
|
proxy: settings.main.proxy ?? {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
hostname: '',
|
hostname: '',
|
||||||
@@ -25,7 +24,6 @@ const migrateNetworkSettings = (settings: any): AllSettings => {
|
|||||||
delete settings.main.csrfProtection;
|
delete settings.main.csrfProtection;
|
||||||
delete settings.main.trustProxy;
|
delete settings.main.trustProxy;
|
||||||
delete settings.main.forceIpv4First;
|
delete settings.main.forceIpv4First;
|
||||||
delete settings.main.dnsServers;
|
|
||||||
delete settings.main.proxy;
|
delete settings.main.proxy;
|
||||||
return newSettings;
|
return newSettings;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ class RestartFlag {
|
|||||||
this.networkSettings.csrfProtection !== networkSettings.csrfProtection ||
|
this.networkSettings.csrfProtection !== networkSettings.csrfProtection ||
|
||||||
this.networkSettings.trustProxy !== networkSettings.trustProxy ||
|
this.networkSettings.trustProxy !== networkSettings.trustProxy ||
|
||||||
this.networkSettings.proxy.enabled !== networkSettings.proxy.enabled ||
|
this.networkSettings.proxy.enabled !== networkSettings.proxy.enabled ||
|
||||||
this.networkSettings.forceIpv4First !== networkSettings.forceIpv4First ||
|
this.networkSettings.forceIpv4First !== networkSettings.forceIpv4First
|
||||||
this.networkSettings.dnsServers !== networkSettings.dnsServers
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,9 +45,6 @@ const messages = defineMessages('components.Settings.SettingsNetwork', {
|
|||||||
forceIpv4First: 'Force IPv4 Resolution First',
|
forceIpv4First: 'Force IPv4 Resolution First',
|
||||||
forceIpv4FirstTip:
|
forceIpv4FirstTip:
|
||||||
'Force Jellyseerr to resolve IPv4 addresses first instead of IPv6',
|
'Force Jellyseerr to resolve IPv4 addresses first instead of IPv6',
|
||||||
dnsServers: 'Custom DNS Servers',
|
|
||||||
dnsServersTip:
|
|
||||||
'Comma-separated list of custom DNS servers, e.g. "1.1.1.1,[2606:4700:4700::1111]"',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const SettingsNetwork = () => {
|
const SettingsNetwork = () => {
|
||||||
@@ -93,7 +90,6 @@ const SettingsNetwork = () => {
|
|||||||
initialValues={{
|
initialValues={{
|
||||||
csrfProtection: data?.csrfProtection,
|
csrfProtection: data?.csrfProtection,
|
||||||
forceIpv4First: data?.forceIpv4First,
|
forceIpv4First: data?.forceIpv4First,
|
||||||
dnsServers: data?.dnsServers,
|
|
||||||
trustProxy: data?.trustProxy,
|
trustProxy: data?.trustProxy,
|
||||||
proxyEnabled: data?.proxy?.enabled,
|
proxyEnabled: data?.proxy?.enabled,
|
||||||
proxyHostname: data?.proxy?.hostname,
|
proxyHostname: data?.proxy?.hostname,
|
||||||
@@ -116,7 +112,6 @@ const SettingsNetwork = () => {
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
csrfProtection: values.csrfProtection,
|
csrfProtection: values.csrfProtection,
|
||||||
forceIpv4First: values.forceIpv4First,
|
forceIpv4First: values.forceIpv4First,
|
||||||
dnsServers: values.dnsServers,
|
|
||||||
trustProxy: values.trustProxy,
|
trustProxy: values.trustProxy,
|
||||||
proxy: {
|
proxy: {
|
||||||
enabled: values.proxyEnabled,
|
enabled: values.proxyEnabled,
|
||||||
@@ -426,34 +421,6 @@ const SettingsNetwork = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-row">
|
|
||||||
<label htmlFor="dnsServers" className="checkbox-label">
|
|
||||||
<span className="mr-2">
|
|
||||||
{intl.formatMessage(messages.dnsServers)}
|
|
||||||
</span>
|
|
||||||
<SettingsBadge badgeType="advanced" className="mr-2" />
|
|
||||||
<SettingsBadge badgeType="restartRequired" />
|
|
||||||
<SettingsBadge badgeType="experimental" />
|
|
||||||
<span className="label-tip">
|
|
||||||
{intl.formatMessage(messages.dnsServersTip)}
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
<div className="form-input-area">
|
|
||||||
<div className="form-input-field">
|
|
||||||
<Field
|
|
||||||
id="dnsServers"
|
|
||||||
name="dnsServers"
|
|
||||||
type="text"
|
|
||||||
inputMode="url"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
{errors.dnsServers &&
|
|
||||||
touched.dnsServers &&
|
|
||||||
typeof errors.dnsServers === 'string' && (
|
|
||||||
<div className="error">{errors.dnsServers}</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="actions">
|
<div className="actions">
|
||||||
<div className="flex justify-end">
|
<div className="flex justify-end">
|
||||||
<span className="ml-3 inline-flex rounded-md shadow-sm">
|
<span className="ml-3 inline-flex rounded-md shadow-sm">
|
||||||
|
|||||||
@@ -940,8 +940,6 @@
|
|||||||
"components.Settings.SettingsNetwork.csrfProtection": "Enable CSRF Protection",
|
"components.Settings.SettingsNetwork.csrfProtection": "Enable CSRF Protection",
|
||||||
"components.Settings.SettingsNetwork.csrfProtectionHoverTip": "Do NOT enable this setting unless you understand what you are doing!",
|
"components.Settings.SettingsNetwork.csrfProtectionHoverTip": "Do NOT enable this setting unless you understand what you are doing!",
|
||||||
"components.Settings.SettingsNetwork.csrfProtectionTip": "Set external API access to read-only (requires HTTPS)",
|
"components.Settings.SettingsNetwork.csrfProtectionTip": "Set external API access to read-only (requires HTTPS)",
|
||||||
"components.Settings.SettingsNetwork.dnsServers": "Custom DNS Servers",
|
|
||||||
"components.Settings.SettingsNetwork.dnsServersTip": "Comma-separated list of custom DNS servers, e.g. \"1.1.1.1,[2606:4700:4700::1111]\"",
|
|
||||||
"components.Settings.SettingsNetwork.docs": "documentation",
|
"components.Settings.SettingsNetwork.docs": "documentation",
|
||||||
"components.Settings.SettingsNetwork.forceIpv4First": "Force IPv4 Resolution First",
|
"components.Settings.SettingsNetwork.forceIpv4First": "Force IPv4 Resolution First",
|
||||||
"components.Settings.SettingsNetwork.forceIpv4FirstTip": "Force Jellyseerr to resolve IPv4 addresses first instead of IPv6",
|
"components.Settings.SettingsNetwork.forceIpv4FirstTip": "Force Jellyseerr to resolve IPv4 addresses first instead of IPv6",
|
||||||
|
|||||||
Reference in New Issue
Block a user