From d7886e4d1801c0e4e981cb722f47bc15c4579534 Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Tue, 14 Jun 2022 14:54:49 -0500 Subject: [PATCH] FIX: Allow all subdomains of localhost in development (#17089) domains can contain numbers. Follow-up-to: 00e756e35858c6fbc058b2e686eca47ae90bda90 --- config/environments/development.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index bbac74b1a91..6f087acd595 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -111,5 +111,5 @@ Discourse::Application.configure do end end - config.hosts << /\A(([a-z-]+)\.)*localhost(\:\d+)?\Z/ + config.hosts << /\A(([a-z0-9-]+)\.)*localhost(\:\d+)?\Z/ end