From 75fe51990fcfbda148ea2fd23910ae922f6296d3 Mon Sep 17 00:00:00 2001 From: jaronoff97 Date: Mon, 22 Apr 2024 22:59:44 -0400 Subject: [PATCH] make url configurable --- lib/tails/remotetapclient.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tails/remotetapclient.ex b/lib/tails/remotetapclient.ex index 66d1ceb..51eaf91 100644 --- a/lib/tails/remotetapclient.ex +++ b/lib/tails/remotetapclient.ex @@ -6,8 +6,7 @@ defmodule Tails.RemoteTapClient do {"Origin", "http://localhost"} ] - url = "ws://localhost:12001" - # IO.puts("starting link!!!") + url = System.get_env("REMOTE_TAP_ENDPOINT") || "ws://localhost:12001" WebSockex.start_link(url, __MODULE__, state, insecure: true,