diff --git a/backend/migrations/20210423103500_stream_domain.js b/backend/migrations/20210423103500_stream_domain.js index 8e415e71..a894ca5e 100644 --- a/backend/migrations/20210423103500_stream_domain.js +++ b/backend/migrations/20210423103500_stream_domain.js @@ -1,4 +1,4 @@ -const migrate_name = 'scream-domain'; +const migrate_name = 'stream_domain'; const logger = require('../logger').migrate; /** diff --git a/backend/schema/endpoints/streams.json b/backend/schema/endpoints/streams.json index 4083faa3..7d4878a8 100644 --- a/backend/schema/endpoints/streams.json +++ b/backend/schema/endpoints/streams.json @@ -21,9 +21,19 @@ "maximum": 65535 }, "forwarding_host": { - "type": "string", - "minLength": 1, - "maxLength": 255 + "oneOf": [ + { + "$ref": "../definitions.json#/definitions/domain_name" + }, + { + "type": "string", + "format": "ipv4" + }, + { + "type": "string", + "format": "ipv6" + } + ] }, "forwarding_port": { "type": "integer", diff --git a/frontend/js/app/nginx/stream/form.ejs b/frontend/js/app/nginx/stream/form.ejs index a95e61c4..eb80c373 100644 --- a/frontend/js/app/nginx/stream/form.ejs +++ b/frontend/js/app/nginx/stream/form.ejs @@ -15,7 +15,7 @@
- +
diff --git a/frontend/js/app/nginx/stream/form.js b/frontend/js/app/nginx/stream/form.js index 3a4f1ea2..be8fc8bc 100644 --- a/frontend/js/app/nginx/stream/form.js +++ b/frontend/js/app/nginx/stream/form.js @@ -76,9 +76,6 @@ module.exports = Mn.View.extend({ } }, - onRender: function () { - }, - initialize: function (options) { if (typeof options.model === 'undefined' || !options.model) { this.model = new StreamModel.Model();