mirror of
https://github.com/pommee/goaway.git
synced 2026-05-03 15:09:22 -05: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",
|
default: "0.0.0.0",
|
||||||
widgetType: Input
|
widgetType: Input
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Gateway *",
|
||||||
|
key: "dnsGateway",
|
||||||
|
explanation: "Gateway used for local DNS resolution, mostly hostnames.",
|
||||||
|
default: "",
|
||||||
|
widgetType: Input
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "Port *",
|
label: "Port *",
|
||||||
key: "dnsPort",
|
key: "dnsPort",
|
||||||
|
|||||||
@@ -103,6 +103,10 @@ export function Settings() {
|
|||||||
...prev,
|
...prev,
|
||||||
dns: { ...prev.dns, address: String(value) }
|
dns: { ...prev.dns, address: String(value) }
|
||||||
}),
|
}),
|
||||||
|
dnsGateway: () => ({
|
||||||
|
...prev,
|
||||||
|
dns: { ...prev.dns, gateway: String(value) }
|
||||||
|
}),
|
||||||
dnsPort: () => ({
|
dnsPort: () => ({
|
||||||
...prev,
|
...prev,
|
||||||
dns: {
|
dns: {
|
||||||
@@ -211,6 +215,7 @@ export function Settings() {
|
|||||||
apiPort: preferences.api.port,
|
apiPort: preferences.api.port,
|
||||||
authentication: preferences.api.authentication,
|
authentication: preferences.api.authentication,
|
||||||
dnsAddress: preferences.dns.address,
|
dnsAddress: preferences.dns.address,
|
||||||
|
dnsGateway: preferences.dns.gateway,
|
||||||
dnsPort: preferences.dns.ports.udptcp,
|
dnsPort: preferences.dns.ports.udptcp,
|
||||||
dotPort: preferences.dns.ports.dot,
|
dotPort: preferences.dns.ports.dot,
|
||||||
dohPort: preferences.dns.ports.doh,
|
dohPort: preferences.dns.ports.doh,
|
||||||
|
|||||||
Reference in New Issue
Block a user