@@ -751,6 +751,11 @@ func (s *Server) GetConfig(_ context.Context, _ *proto.GetConfigRequest) (*proto
751
751
752
752
}
753
753
754
+ disableNotifications := true
755
+ if s .config .DisableNotifications != nil {
756
+ disableNotifications = * s .config .DisableNotifications
757
+ }
758
+
754
759
return & proto.GetConfigResponse {
755
760
ManagementUrl : managementURL ,
756
761
ConfigFile : s .latestConfigInput .ConfigPath ,
@@ -763,14 +768,14 @@ func (s *Server) GetConfig(_ context.Context, _ *proto.GetConfigRequest) (*proto
763
768
ServerSSHAllowed : * s .config .ServerSSHAllowed ,
764
769
RosenpassEnabled : s .config .RosenpassEnabled ,
765
770
RosenpassPermissive : s .config .RosenpassPermissive ,
766
- DisableNotifications : s . config . DisableNotifications ,
771
+ DisableNotifications : disableNotifications ,
767
772
}, nil
768
773
}
769
774
770
775
func (s * Server ) onSessionExpire () {
771
776
if runtime .GOOS != "windows" {
772
777
isUIActive := internal .CheckUIApp ()
773
- if ! isUIActive && ! s .config .DisableNotifications {
778
+ if ! isUIActive && s . config . DisableNotifications != nil && ! * s .config .DisableNotifications {
774
779
if err := sendTerminalNotification (); err != nil {
775
780
log .Errorf ("send session expire terminal notification: %v" , err )
776
781
}
0 commit comments