GetAdminConfig returns the current admin config in a thread-safe manner. The config should not be modified.
()
| 135 | // GetAdminConfig returns the current admin config in a thread-safe manner. The |
| 136 | // config should not be modified. |
| 137 | func (serv *Server) GetAdminConfig() *Config { |
| 138 | serv.lock.RLock() |
| 139 | defer serv.lock.RUnlock() |
| 140 | |
| 141 | return serv.config |
| 142 | } |
| 143 | |
| 144 | func (serv *Server) handlePublicKey(ctx ssh.Context, incomingKey ssh.PublicKey) bool { |
| 145 | slog := CtxLogger(ctx).With(). |