From 1cf3683ff2cab0d192e3495301c22a9770b5cb13 Mon Sep 17 00:00:00 2001 From: Yuri Iozzelli Date: Wed, 31 Aug 2022 17:20:02 +0200 Subject: [PATCH] Add bind and use self-hosted headscale --- index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f6f4f24..91e8a47 100644 --- a/index.html +++ b/index.html @@ -40,11 +40,17 @@ import { init } from "/tun/tailscale_tun.js"; import { showPeers, showLoginURL } from "/tun/test/ui.js"; - const { loginURL, ipStack } = await init({ netMapCallback: showPeers }); + const { loginURL, ipStack } = await init({ + netMapCallback: showPeers, + dnsIp: "8.8.8.8", + controlURL: "https://headscale.yuri.space", + exitNodeIp: "100.64.0.3", + }); showLoginURL(loginURL); - const { listen, connect, parseIP } = await ipStack; + const { listen, connect, bind, parseIP } = await ipStack; window.listen = listen; window.connect = connect; + window.bind = bind; window.parseIP = parseIP;