summaryrefslogtreecommitdiffhomepage
path: root/ipn/ipn_view.go
diff options
context:
space:
mode:
Diffstat (limited to 'ipn/ipn_view.go')
-rw-r--r--ipn/ipn_view.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipn/ipn_view.go b/ipn/ipn_view.go
index 0e22544dd..cd89fa151 100644
--- a/ipn/ipn_view.go
+++ b/ipn/ipn_view.go
@@ -177,11 +177,18 @@ func (v ServeConfigView) AllowFunnel() views.Map[HostPort, bool] {
return views.MapOf(v.ж.AllowFunnel)
}
+func (v ServeConfigView) Foreground() views.MapFn[string, *ServeConfig, ServeConfigView] {
+ return views.MapFnOf(v.ж.Foreground, func(t *ServeConfig) ServeConfigView {
+ return t.View()
+ })
+}
+
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _ServeConfigViewNeedsRegeneration = ServeConfig(struct {
TCP map[uint16]*TCPPortHandler
Web map[HostPort]*WebServerConfig
AllowFunnel map[HostPort]bool
+ Foreground map[string]*ServeConfig
}{})
// View returns a readonly view of TCPPortHandler.