Add filesrver_ip_type to config page

This commit is contained in:
shortcutme 2019-01-20 03:28:22 +01:00
parent ce6668ef8c
commit 15f4bc5bd6
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
2 changed files with 25 additions and 0 deletions

View File

@ -44,6 +44,16 @@ class ConfigStorage extends Class
# Network
section = @createSection("Network")
section.items.push
key: "fileserver_ip_type"
title: "File server network"
type: "select"
options: [
{title: "IPv4", value: "ipv4"}
{title: "IPv6", value: "ipv6"}
]
description: "Accept incoming peers using IPv4 or IPv6 address. (default: IPv4)"
section.items.push
key: "fileserver_port"
title: "File server port"

View File

@ -1354,6 +1354,21 @@
type: "checkbox"
});
section = this.createSection("Network");
section.items.push({
key: "fileserver_ip_type",
title: "File server network",
type: "select",
options: [
{
title: "IPv4",
value: "ipv4"
}, {
title: "IPv6",
value: "ipv6"
}
],
description: "Accept other peers using IPv4 or IPv6 address. (default: IPv4)"
});
section.items.push({
key: "fileserver_port",
title: "File server port",