Add bind and use self-hosted headscale
This commit is contained in:
parent
c5b2708697
commit
1cf3683ff2
1 changed files with 8 additions and 2 deletions
10
index.html
10
index.html
|
@ -40,11 +40,17 @@
|
||||||
import { init } from "/tun/tailscale_tun.js";
|
import { init } from "/tun/tailscale_tun.js";
|
||||||
import { showPeers, showLoginURL } from "/tun/test/ui.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);
|
showLoginURL(loginURL);
|
||||||
const { listen, connect, parseIP } = await ipStack;
|
const { listen, connect, bind, parseIP } = await ipStack;
|
||||||
window.listen = listen;
|
window.listen = listen;
|
||||||
window.connect = connect;
|
window.connect = connect;
|
||||||
|
window.bind = bind;
|
||||||
window.parseIP = parseIP;
|
window.parseIP = parseIP;
|
||||||
</script>
|
</script>
|
||||||
<script src="./xterm/xterm.js"></script>
|
<script src="./xterm/xterm.js"></script>
|
||||||
|
|
Loading…
Reference in a new issue