Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't disable webclient #12084

Open
misuzu opened this issue May 10, 2024 · 0 comments
Open

Can't disable webclient #12084

misuzu opened this issue May 10, 2024 · 0 comments

Comments

@misuzu
Copy link

misuzu commented May 10, 2024

What is the issue?

sudo tailscale set --webclient=false doesn't disable the "webclient"

Steps to reproduce

% sudo tailscale set --webclient           

Web interface now running at 100.116.112.151:5252
% curl 100.116.112.151:5252                                                                                                             misuzu@erika ~ % curl 100.116.112.151:5252     
<!doctype html>
<html class="bg-gray-50">
  <head>
    <title>Tailscale</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQflAx4QGA4EvmzDAAAA30lEQVRIx2NgGAWMCKa8JKM4A8Ovt88ekyLCDGOoyDBJMjExMbFy8zF8/EKsCAMDE8yAPyIwFps48SJIBpAL4AZwvoSx/r0lXgQpDN58EWL5x/7/H+vL20+JFxluQKVe5b3Ke5V+0kQQCamfoYKBg4GDwUKI8d0BYkWQkrLKewYBKPPDHUFiRaiZkBgmwhj/F5IgggyUJ6i8V3mv0kCayDAAeEsklXqGAgYGhgV3CnGrwVciYSYk0kokhgS44/JxqqFpiYSZbEgskd4dEBRk1GD4wdB5twKXmlHAwMDAAACdEZau06NQUwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wNy0xNVQxNTo1Mzo0MCswMDowMCVXsDIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDctMTVUMTU6NTM6NDArMDA6MDBUCgiOAAAAAElFTkSuQmCC" />
    <link rel="preload" as="font" href="./assets/Inter.var.latin-Dxq58mVK.woff2" type="font/woff2" crossorigin />
    <script type="module" crossorigin src="./assets/index-DUHvXbWu.js"></script>
    <link rel="stylesheet" crossorigin href="./assets/index-D59OWpX6.css">
  </head>
  <body class="px-2">
    <noscript>
      <p class="mb-2">You need to enable Javascript to access the Tailscale web client.</p>
      <p>If you need any help, feel free to <a href="mailto:support+webclient@tailscale.com" class="link">contact us</a>.</p>
    </noscript>
    <script>
      // if this script is changed, also change hash in web.go
      window.addEventListener("load", () => {
        if (!window.Tailscale) {
          const rootEl = document.createElement("p")
          rootEl.innerHTML = 'Tailscale web interface is unavailable.';
          document.body.append(rootEl)
        }
      })
    </script>
  </body>
</html>
% sudo tailscale set --webclient=false
% curl 100.116.112.151:5252           
<!doctype html>
<html class="bg-gray-50">
  <head>
    <title>Tailscale</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQflAx4QGA4EvmzDAAAA30lEQVRIx2NgGAWMCKa8JKM4A8Ovt88ekyLCDGOoyDBJMjExMbFy8zF8/EKsCAMDE8yAPyIwFps48SJIBpAL4AZwvoSx/r0lXgQpDN58EWL5x/7/H+vL20+JFxluQKVe5b3Ke5V+0kQQCamfoYKBg4GDwUKI8d0BYkWQkrLKewYBKPPDHUFiRaiZkBgmwhj/F5IgggyUJ6i8V3mv0kCayDAAeEsklXqGAgYGhgV3CnGrwVciYSYk0kokhgS44/JxqqFpiYSZbEgskd4dEBRk1GD4wdB5twKXmlHAwMDAAACdEZau06NQUwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wNy0xNVQxNTo1Mzo0MCswMDowMCVXsDIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDctMTVUMTU6NTM6NDArMDA6MDBUCgiOAAAAAElFTkSuQmCC" />
    <link rel="preload" as="font" href="./assets/Inter.var.latin-Dxq58mVK.woff2" type="font/woff2" crossorigin />
    <script type="module" crossorigin src="./assets/index-DUHvXbWu.js"></script>
    <link rel="stylesheet" crossorigin href="./assets/index-D59OWpX6.css">
  </head>
  <body class="px-2">
    <noscript>
      <p class="mb-2">You need to enable Javascript to access the Tailscale web client.</p>
      <p>If you need any help, feel free to <a href="mailto:support+webclient@tailscale.com" class="link">contact us</a>.</p>
    </noscript>
    <script>
      // if this script is changed, also change hash in web.go
      window.addEventListener("load", () => {
        if (!window.Tailscale) {
          const rootEl = document.createElement("p")
          rootEl.innerHTML = 'Tailscale web interface is unavailable.';
          document.body.append(rootEl)
        }
      })
    </script>
  </body>
</html>

Are there any recent changes that introduced the issue?

No response

OS

Linux

OS version

NixOS 24.05.20240507.b211b39 (Uakari) x86_64

Tailscale version

1.64.2

Other software

No response

Bug report

BUG-c5e3444f155efd358ac0a35c7c99ac50afb69e31332a302f2207fc986c29a6f1-20240510071303Z-104c7144fbae868d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants