Restrict port to numbers

This commit is contained in:
shortcutme 2018-07-16 01:53:34 +02:00
parent e8895a4d76
commit 7c0541034a
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -47,7 +47,7 @@ class ConfigStorage extends Class
key: "fileserver_port"
title: "File server port"
type: "text"
restrict: "number"
valid_pattern: /[0-9]*/
description: "Other peers will use this port to reach your served sites. (default: 15441)"
section.items.push