Skip to content

Commit

Permalink
Add infinitude host match
Browse files Browse the repository at this point in the history
Allow proxying traffic with hostname matching `infinitude` - which should hopefully allow people to set up their own local dns entry and point their thermostat to it, divorcing from Carrier's cloud services more completely.
  • Loading branch information
nebulous authored Nov 6, 2023
1 parent ff80d1f commit d97f310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infinitude
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ hook before_dispatch => sub {

my $url = $c->req->url;

if ($url->to_abs->host =~ /(bryant|carrier|ioncomfort|127.0.0.1)/i) { # request from stat or test harness
if ($url->to_abs->host =~ /(bryant|carrier|ioncomfort|infinitude|127.0.0.1)/i) { # request from stat or test harness
my $nk = $url->path->to_string;
$nk =~ s/\//-/g;
$nk =~ s/^-//;
Expand Down

0 comments on commit d97f310

Please sign in to comment.