diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-17 10:28:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-17 10:28:33 +0100 |
commit | efaf3797897533ebaac6d96110c4c56af9fc1628 (patch) | |
tree | fc050302e7104a76e4eb620415dc91e7f122e876 /server/helpers/custom-validators/servers.ts | |
parent | 03902b00994a03e333acd7662d26782e3dc52e07 (diff) | |
download | PeerTube-efaf3797897533ebaac6d96110c4c56af9fc1628.tar.gz PeerTube-efaf3797897533ebaac6d96110c4c56af9fc1628.tar.zst PeerTube-efaf3797897533ebaac6d96110c4c56af9fc1628.zip |
Fix dev instance following test instances
Diffstat (limited to 'server/helpers/custom-validators/servers.ts')
-rw-r--r-- | server/helpers/custom-validators/servers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/servers.ts b/server/helpers/custom-validators/servers.ts index 94fda05aa..b2aa03b77 100644 --- a/server/helpers/custom-validators/servers.ts +++ b/server/helpers/custom-validators/servers.ts | |||
@@ -10,7 +10,7 @@ function isHostValid (host: string) { | |||
10 | } | 10 | } |
11 | 11 | ||
12 | // We validate 'localhost', so we don't have the top level domain | 12 | // We validate 'localhost', so we don't have the top level domain |
13 | if (CONFIG.WEBSERVER.HOSTNAME === 'localhost') { | 13 | if (CONFIG.WEBSERVER.HOSTNAME === 'localhost' || CONFIG.WEBSERVER.HOSTNAME === '127.0.0.1') { |
14 | isURLOptions.require_tld = false | 14 | isURLOptions.require_tld = false |
15 | } | 15 | } |
16 | 16 | ||