[client] Add block lan access flag for routers (#3171)

This commit is contained in:
Viktor Liu
2025-01-15 17:39:47 +01:00
committed by GitHub
parent 5a82477d48
commit 78795a4a73
9 changed files with 475 additions and 343 deletions

View File

@ -416,6 +416,11 @@ func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*pro
s.latestConfigInput.DisableFirewall = msg.DisableFirewall
}
if msg.BlockLanAccess != nil {
inputConfig.BlockLANAccess = msg.BlockLanAccess
s.latestConfigInput.BlockLANAccess = msg.BlockLanAccess
}
s.mutex.Unlock()
if msg.OptionalPreSharedKey != nil {