1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Add ability to use docker on local

This commit is contained in:
Chocobozzz 2022-08-11 10:43:31 +02:00
parent f4057afd20
commit b1053a30f6
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 10 additions and 9 deletions

View file

@ -1,6 +1,6 @@
import validator from 'validator'
import { CONFIG } from '@server/initializers/config'
import { CONSTRAINTS_FIELDS } from '../../../initializers/constants'
import { isTestOrDevInstance } from '../../core-utils'
import { exists } from '../misc'
function isUrlValid (url: string) {
@ -13,7 +13,7 @@ function isUrlValid (url: string) {
}
// We validate 'localhost', so we don't have the top level domain
if (isTestOrDevInstance()) {
if (CONFIG.WEBSERVER.HOSTNAME === 'localhost') {
isURLOptions.require_tld = false
}