Skip to content

Commit

Permalink
config(webinterface): Allow run.dlang.org hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed Nov 15, 2022
1 parent 829e3f5 commit 621a170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/webinterface.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import vibe.http.server;
import vibe.stream.operations : readAllUTF8;
import vibe.web.web;

import std.algorithm: countUntil;
import std.algorithm: countUntil, among;
import std.exception : enforce;
import std.format : format;
import std.range : empty;
Expand Down Expand Up @@ -119,7 +119,7 @@ class WebInterface
void index(HTTPServerRequest req, HTTPServerResponse res)
{
// support "standalone" mode of the editor
if (req.host == "run.dlang.io")
if (req.host.among("run.dlang.io", "run.dlang.org"))
getEditor(req, res);
else
getStart(req, res, defaultLang);
Expand Down

0 comments on commit 621a170

Please sign in to comment.