mirror of
https://github.com/pommee/goaway.git
synced 2026-01-07 14:29:34 -06:00
ui: add gateway to settings page
This commit is contained in:
@@ -69,6 +69,13 @@ export const SETTINGS_SECTIONS = [
|
||||
default: "0.0.0.0",
|
||||
widgetType: Input
|
||||
},
|
||||
{
|
||||
label: "Gateway *",
|
||||
key: "dnsGateway",
|
||||
explanation: "Gateway used for local DNS resolution, mostly hostnames.",
|
||||
default: "",
|
||||
widgetType: Input
|
||||
},
|
||||
{
|
||||
label: "Port *",
|
||||
key: "dnsPort",
|
||||
|
||||
@@ -103,6 +103,10 @@ export function Settings() {
|
||||
...prev,
|
||||
dns: { ...prev.dns, address: String(value) }
|
||||
}),
|
||||
dnsGateway: () => ({
|
||||
...prev,
|
||||
dns: { ...prev.dns, gateway: String(value) }
|
||||
}),
|
||||
dnsPort: () => ({
|
||||
...prev,
|
||||
dns: {
|
||||
@@ -211,6 +215,7 @@ export function Settings() {
|
||||
apiPort: preferences.api.port,
|
||||
authentication: preferences.api.authentication,
|
||||
dnsAddress: preferences.dns.address,
|
||||
dnsGateway: preferences.dns.gateway,
|
||||
dnsPort: preferences.dns.ports.udptcp,
|
||||
dotPort: preferences.dns.ports.dot,
|
||||
dohPort: preferences.dns.ports.doh,
|
||||
|
||||
Reference in New Issue
Block a user