File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4210,6 +4210,9 @@ func (b *LocalBackend) ResetForClientDisconnect() {
42104210
42114211func (b * LocalBackend ) ShouldRunSSH () bool { return b .sshAtomicBool .Load () && envknob .CanSSHD () }
42124212
4213+ // ShouldRunWebClient reports whether the web client is being run
4214+ // within this tailscaled instance. ShouldRunWebClient is safe to
4215+ // call regardless of whether b.mu is held or not.
42134216func (b * LocalBackend ) ShouldRunWebClient () bool { return b .webClientAtomicBool .Load () }
42144217
42154218func (b * LocalBackend ) setWebClientAtomicBoolLocked (nm * netmap.NetworkMap , prefs ipn.PrefsView ) {
@@ -4467,6 +4470,9 @@ func (b *LocalBackend) setTCPPortsInterceptedFromNetmapAndPrefsLocked(prefs ipn.
44674470 if prefs .Valid () && prefs .RunSSH () && envknob .CanSSHD () {
44684471 handlePorts = append (handlePorts , 22 )
44694472 }
4473+ if b .ShouldRunWebClient () {
4474+ handlePorts = append (handlePorts , 5252 )
4475+ }
44704476
44714477 b .reloadServeConfigLocked (prefs )
44724478 if b .serveConfig .Valid () {
You can’t perform that action at this time.
0 commit comments